vfs: close directory handle in node destructor

This commit is contained in:
Christian Helmuth 2017-11-28 16:23:14 +01:00
parent d1e0e460a1
commit 1556300ea6

View File

@ -378,6 +378,8 @@ struct Vfs_server::Directory : Node
_handle->context = this; _handle->context = this;
} }
~Directory() { _handle->ds().close(_handle); }
Node_space::Id file(Node_space &space, Node_space::Id file(Node_space &space,
Vfs::File_system &vfs, Vfs::File_system &vfs,
Genode::Allocator &alloc, Genode::Allocator &alloc,