1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

Free resources in an error case.

CID:		1018947
Found with:	Coverity Prevent(tm)
MFC after:	1 week
This commit is contained in:
Christian Brueffer 2014-05-02 21:34:17 +00:00
parent 0eb41ebc3d
commit ed472910ba
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=265244

View File

@ -1037,6 +1037,7 @@ cpufreq_unregister(device_t dev)
if (cf_dev == NULL) { if (cf_dev == NULL) {
device_printf(dev, device_printf(dev,
"warning: cpufreq_unregister called with no cpufreq device active\n"); "warning: cpufreq_unregister called with no cpufreq device active\n");
free(devs, M_TEMP);
return (0); return (0);
} }
cfcount = 0; cfcount = 0;