mirror of
https://github.com/samba-team/samba.git
synced 2025-08-02 00:22:11 +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);
|
ret = tstream_bsd_existing_socket(client, sock, &client->sock);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
DEBUG(10, ("tstream_bsd_existing_socket failed\n"));
|
DEBUG(10, ("tstream_bsd_existing_socket failed\n"));
|
||||||
|
TALLOC_FREE(client);
|
||||||
close(sock);
|
close(sock);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user