mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
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>
This commit is contained in:
parent
e8f56be3da
commit
ca9c6c8a32
@ -1418,6 +1418,7 @@ static void swrap_remove_stale(int fd)
|
||||
|
||||
if (si->fds == NULL) {
|
||||
SWRAP_DLIST_REMOVE(sockets, si);
|
||||
free(si);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user