mirror of
https://github.com/samba-team/samba.git
synced 2025-07-31 20:22:15 +03:00
libsmb: Fix an error path memleak
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
committed by
Ralph Boehme
parent
aa29a695fb
commit
3781dba923
@ -170,6 +170,7 @@ static void nb_packet_server_listener(struct tevent_context *ev,
|
||||
ret = tstream_bsd_existing_socket(client, sock, &client->sock);
|
||||
if (ret != 0) {
|
||||
DEBUG(10, ("tstream_bsd_existing_socket failed\n"));
|
||||
TALLOC_FREE(client);
|
||||
close(sock);
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user