libc_fs: release libc file descriptor in 'close()'

Fixes #334.
This commit is contained in:
Christian Prochaska 2012-08-22 16:05:04 +02:00 committed by Norman Feske
parent 7f092be94c
commit 9c278d6b8f
1 changed files with 4 additions and 0 deletions

View File

@ -322,6 +322,10 @@ class Plugin : public Libc::Plugin
}
file_system()->close(context(fd)->node_handle());
Genode::destroy(Genode::env()->heap(), context(fd));
Libc::file_descriptor_allocator()->free(fd);
return 0;
}