diff options
author | Andreas Schneider <asn@samba.org> | 2014-10-24 11:22:15 +0200 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2014-10-24 14:52:37 +0200 |
commit | f05cbad1929ad0f144834b0df444239ab0c05a21 (patch) | |
tree | bde874c294257dc989f45008f4f62f213f63c26e | |
parent | f0606cf44ac93c2105296d608f5e88ec0a9ba3c9 (diff) | |
download | socket_wrapper-f05cbad1929ad0f144834b0df444239ab0c05a21.tar.gz socket_wrapper-f05cbad1929ad0f144834b0df444239ab0c05a21.tar.xz socket_wrapper-f05cbad1929ad0f144834b0df444239ab0c05a21.zip |
swrap: Do not leak the socket_info we just removed.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
-rw-r--r-- | src/socket_wrapper.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/socket_wrapper.c b/src/socket_wrapper.c index 82e5737..eb1d67f 100644 --- a/src/socket_wrapper.c +++ b/src/socket_wrapper.c @@ -1418,6 +1418,7 @@ static void swrap_remove_stale(int fd) if (si->fds == NULL) { SWRAP_DLIST_REMOVE(sockets, si); + free(si); } } } |