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
@ -335,8 +335,10 @@ acpi_tz_startup(void *arg __unused)
|
|||||||
int devcount, error, i;
|
int devcount, error, i;
|
||||||
|
|
||||||
devclass_get_devices(acpi_tz_devclass, &devs, &devcount);
|
devclass_get_devices(acpi_tz_devclass, &devs, &devcount);
|
||||||
if (devcount == 0)
|
if (devcount == 0) {
|
||||||
|
free(devs, M_TEMP);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Create thread to service all of the thermal zones.
|
* Create thread to service all of the thermal zones.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user