mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Free resources in an error case.
CID: 1018947 Found with: Coverity Prevent(tm) MFC after: 1 week
This commit is contained in:
parent
0eb41ebc3d
commit
ed472910ba
1 changed files with 1 additions and 0 deletions
|
|
@ -1037,6 +1037,7 @@ cpufreq_unregister(device_t dev)
|
|||
if (cf_dev == NULL) {
|
||||
device_printf(dev,
|
||||
"warning: cpufreq_unregister called with no cpufreq device active\n");
|
||||
free(devs, M_TEMP);
|
||||
return (0);
|
||||
}
|
||||
cfcount = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue