Add missing put_vnode() in error case.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30890 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1810,6 +1810,7 @@ overlay_get_vnode(fs_volume *volume, ino_t id, fs_vnode *vnode, int *_type,
|
|||||||
|
|
||||||
status = node->InitCheck();
|
status = node->InitCheck();
|
||||||
if (status != B_OK) {
|
if (status != B_OK) {
|
||||||
|
vnode->ops->put_vnode(volume->super_volume, vnode, reenter);
|
||||||
delete node;
|
delete node;
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user