diff options
author | Andreas Schneider <asn@samba.org> | 2015-02-23 17:17:43 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2015-02-23 20:02:51 +0100 |
commit | ca9c6c8a323614de274678b42740b958a09736d1 (patch) | |
tree | 1b1890973c57c89a70116fa5e440ac2e014686a8 /lib/socket_wrapper | |
parent | e8f56be3da4b14df9be830d7b4670dc51516e0b2 (diff) | |
download | samba-ca9c6c8a323614de274678b42740b958a09736d1.tar.gz |
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>
Diffstat (limited to 'lib/socket_wrapper')
-rw-r--r-- | lib/socket_wrapper/socket_wrapper.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/socket_wrapper/socket_wrapper.c b/lib/socket_wrapper/socket_wrapper.c index 82e57376c35..eb1d67fbeba 100644 --- a/lib/socket_wrapper/socket_wrapper.c +++ b/lib/socket_wrapper/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); } } } |