git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e8f56be
)
swrap: Do not leak the socket_info we just removed.
author
Andreas Schneider
<asn@samba.org>
Mon, 23 Feb 2015 16:17:43 +0000
(17:17 +0100)
committer
Andreas Schneider
<asn@cryptomilk.org>
Mon, 23 Feb 2015 19:02:51 +0000
(20:02 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
lib/socket_wrapper/socket_wrapper.c
patch
|
blob
|
history
diff --git
a/lib/socket_wrapper/socket_wrapper.c
b/lib/socket_wrapper/socket_wrapper.c
index 82e57376c35166c0234fed0785e05b24bd45179c..eb1d67fbeba04e21cc5c279bc50491f01ce875b4 100644
(file)
--- 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);
}
}
}