1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

ctdb-tcp: Fix CID 1291643 - Resource leak (RESOURCE_LEAK)

Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Anoop C S <anoopcs@samba.org>
This commit is contained in:
Martin Schwenke
2025-06-01 11:05:31 +10:00
committed by Anoop C S
parent e8e118e5b3
commit 014a1bd981

View File

@ -578,6 +578,7 @@ static int ctdb_tcp_listen_automatic(struct ctdb_context *ctdb)
}
TALLOC_FREE(ips_ctx);
close(lock_fd);
if (i == ctdb->num_nodes) {
D_ERR("Unable to bind to any node address - giving up\n");