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:
Michael Lotz
2009-05-28 02:16:07 +00:00
parent 4251f05625
commit 2fc5fcd1ad
@@ -1810,6 +1810,7 @@ overlay_get_vnode(fs_volume *volume, ino_t id, fs_vnode *vnode, int *_type,
status = node->InitCheck();
if (status != B_OK) {
vnode->ops->put_vnode(volume->super_volume, vnode, reenter);
delete node;
return status;
}