mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
libdgram: Fix an error path memleak
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Fri Apr 13 21:04:28 CEST 2018 on sn-devel-144
This commit is contained in:
parent
8b770e646a
commit
b8f7167474
@ -171,6 +171,7 @@ NTSTATUS dgram_mailslot_send(struct nbt_dgram_socket *dgmsock,
|
||||
packet.dgram_id = generate_random() % UINT16_MAX;
|
||||
src = socket_get_my_addr(dgmsock->sock, tmp_ctx);
|
||||
if (!src) {
|
||||
talloc_free(tmp_ctx);
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
}
|
||||
packet.src_addr = src->addr;
|
||||
|
Loading…
Reference in New Issue
Block a user