mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
messaging4: Fix an error path memleak
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
@ -1041,6 +1041,7 @@ struct irpc_name_records *irpc_all_servers(struct imessaging_context *msg_ctx,
|
||||
|
||||
ret = tdb_traverse_read(t->tdb, all_servers_func, name_records);
|
||||
if (ret == -1) {
|
||||
TALLOC_FREE(name_records);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user