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
eafe86b137
commit
2f8ff58ccd
@ -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