diff options
author | Awadhesh Singh <awadhesh1.s@samsung.com> | 2016-02-05 11:44:39 +0000 |
---|---|---|
committer | Tom Hacohen <tom@stosb.com> | 2016-02-05 11:45:37 +0000 |
commit | 6ec5ba177b4f8f7482fe8eae5c2f16424f880ac9 (patch) | |
tree | a0436fb952aad06cf66de2d87a93314985f03af2 | |
parent | 745f7086928a9fa6854c5cf4516acef46ec18f70 (diff) | |
download | efl-6ec5ba177b4f8f7482fe8eae5c2f16424f880ac9.tar.gz |
Ecore con: Close server socket fd on failure.
Summary:
Socket fd must be closed to avoid file discripter leak.
Programs can usually only open a limited number of file descriptors,
so if this happens a lot, it may turn into a problem.
@fix
Reviewers: raster, Hermet, wonsik, spacegrapher, cedric, jpeg, tasn
Reviewed By: tasn
Subscribers: cedric, alok25, yashu21985, singh.amitesh
Differential Revision: https://phab.enlightenment.org/D3660
-rw-r--r-- | src/lib/ecore_con/ecore_con_local.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/ecore_con/ecore_con_local.c b/src/lib/ecore_con/ecore_con_local.c index c493cc5670..9196e18770 100644 --- a/src/lib/ecore_con/ecore_con_local.c +++ b/src/lib/ecore_con/ecore_con_local.c @@ -418,6 +418,7 @@ fd_ready: error_umask: umask(pmode); error: + close(svr->fd); #endif /* HAVE_LOCAL_SOCKETS */ return 0; } |