summaryrefslogtreecommitdiffstats
path: root/lib/socket_wrapper
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2015-02-23 17:17:43 +0100
committerAndreas Schneider <asn@cryptomilk.org>2015-02-23 20:02:51 +0100
commitca9c6c8a323614de274678b42740b958a09736d1 (patch)
tree1b1890973c57c89a70116fa5e440ac2e014686a8 /lib/socket_wrapper
parente8f56be3da4b14df9be830d7b4670dc51516e0b2 (diff)
downloadsamba-ca9c6c8a323614de274678b42740b958a09736d1.tar.gz
samba-ca9c6c8a323614de274678b42740b958a09736d1.tar.xz
samba-ca9c6c8a323614de274678b42740b958a09736d1.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>
Diffstat (limited to 'lib/socket_wrapper')
-rw-r--r--lib/socket_wrapper/socket_wrapper.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/socket_wrapper/socket_wrapper.c b/lib/socket_wrapper/socket_wrapper.c
index 82e57376c3..eb1d67fbeb 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);
}
}
}