]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-tcp: Fix CID 1291643 - Resource leak (RESOURCE_LEAK)
authorMartin Schwenke <mschwenke@ddn.com>
Sun, 1 Jun 2025 01:05:31 +0000 (11:05 +1000)
committerAnoop C S <anoopcs@samba.org>
Mon, 28 Jul 2025 05:45:28 +0000 (05:45 +0000)
Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Anoop C S <anoopcs@samba.org>
ctdb/tcp/tcp_connect.c

index d69c196dbe49ad65ff727d6637a18073d6b4d362..e508e9aba1a1d95b6d86e40a18d10722d7ea42b6 100644 (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");