mirror of
https://github.com/genodelabs/genode.git
synced 2025-03-13 15:56:32 +00:00
LibC socket FS: Fix leak of remote and local files
This commit is contained in:
parent
1df4e53cba
commit
222a789fef
@ -82,7 +82,9 @@ namespace {
|
|||||||
|
|
||||||
~Socket_context()
|
~Socket_context()
|
||||||
{
|
{
|
||||||
if (_data_fd != -1) close(_data_fd);
|
if (_data_fd != -1) close(_data_fd);
|
||||||
|
if (_local_fd != -1) close(_local_fd);
|
||||||
|
if (_remote_fd != -1) close(_remote_fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
int _open_file(char const *file_name)
|
int _open_file(char const *file_name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user