ram_fs: close open nodes on session close

Fixes #3559
This commit is contained in:
Alexander Boettcher 2019-11-22 15:18:53 +01:00 committed by Christian Helmuth
parent 7182c10c90
commit 2778debc29

View File

@ -236,6 +236,9 @@ class Ram_fs::Session_component : public File_system::Session_rpc_object
*/
~Session_component()
{
while (_open_node_registry.apply_any<Open_node>([&] (Open_node &node) {
destroy(_alloc, &node); })) { }
Dataspace_capability ds = tx_sink()->dataspace();
_ram.free(static_cap_cast<Ram_dataspace>(ds));
}