Properly free resources in case of an error.
CID: 4222 Found with: Coverity Prevent(tm) MFC after: 1 week
This commit is contained in:
parent
acdfc36a85
commit
32a1cc9317
@ -208,6 +208,7 @@ siba_bwn_suspend(device_t dev)
|
||||
if (error) {
|
||||
for (j = 0; j < i; j++)
|
||||
DEVICE_RESUME(devlistp[j]);
|
||||
free(devlistp, M_TEMP);
|
||||
return (error);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user