Memory leak in error case. CID 872.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25643 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1843,8 +1843,10 @@ devfs_open(fs_volume *_volume, fs_vnode *_vnode, int openMode,
|
|||||||
&& driver->devices_used == 0
|
&& driver->devices_used == 0
|
||||||
&& (driver->image < 0 || driver->binary_updated)) {
|
&& (driver->image < 0 || driver->binary_updated)) {
|
||||||
status = reload_driver(driver);
|
status = reload_driver(driver);
|
||||||
if (status < B_OK)
|
if (status < B_OK) {
|
||||||
|
free(cookie);
|
||||||
return status;
|
return status;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
locker.Unlock();
|
locker.Unlock();
|
||||||
|
|||||||
Reference in New Issue
Block a user