Add missing vnode_put on kernel vnode (reference count not released so it would hang on reboot).
Fix memory leaks on failure cases.