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:
parent
7ad3cf0bc3
commit
cefcb7b41c
@ -1843,8 +1843,10 @@ devfs_open(fs_volume *_volume, fs_vnode *_vnode, int openMode,
|
||||
&& driver->devices_used == 0
|
||||
&& (driver->image < 0 || driver->binary_updated)) {
|
||||
status = reload_driver(driver);
|
||||
if (status < B_OK)
|
||||
if (status < B_OK) {
|
||||
free(cookie);
|
||||
return status;
|
||||
}
|
||||
}
|
||||
|
||||
locker.Unlock();
|
||||
|
Loading…
Reference in New Issue
Block a user