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:
Conrad Meyer 2016-06-07 19:08:13 +00:00
parent 8a77146289
commit 00ee4cd78a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=301562

View File

@ -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.