mirror of
https://git.FreeBSD.org/src.git
synced 2025-02-08 07:25:31 +00:00
Fix a minor leak in ACPI thermal
Introduced in r301518. Reported by: Coverity CID: 1356266 Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
8a77146289
commit
00ee4cd78a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=301562
@ -335,8 +335,10 @@ acpi_tz_startup(void *arg __unused)
|
||||
int devcount, error, i;
|
||||
|
||||
devclass_get_devices(acpi_tz_devclass, &devs, &devcount);
|
||||
if (devcount == 0)
|
||||
if (devcount == 0) {
|
||||
free(devs, M_TEMP);
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* Create thread to service all of the thermal zones.
|
||||
|
Loading…
x
Reference in New Issue
Block a user