LibC socket FS: Fix leak of remote and local files

This commit is contained in:
Martin Stein 2017-02-16 19:00:43 +01:00 committed by Christian Helmuth
parent 1df4e53cba
commit 222a789fef

View File

@ -82,7 +82,9 @@ namespace {
~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)