ctdb: Fix a memleak
authorVolker Lendecke <vl@samba.org>
Thu, 16 Apr 2020 12:38:34 +0000 (14:38 +0200)
committerMartin Schwenke <martins@samba.org>
Fri, 17 Apr 2020 08:32:35 +0000 (08:32 +0000)
Bug: https://bugzilla.samba.org/show_bug.cgi?id=14348
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Fri Apr 17 08:32:35 UTC 2020 on sn-devel-184

ctdb/server/ctdb_recoverd.c

index ee083e92fb110b04bb5313dc5ad50434999b13ab..3f5d43c1e87a25d66bf485dc7d357bb8a9686c2e 100644 (file)
@@ -2078,6 +2078,7 @@ static int verify_local_ip_allocation(struct ctdb_context *ctdb,
        /* Return early if disabled... */
        if (ctdb_config.failover_disabled ||
            ctdb_op_is_disabled(rec->takeover_run)) {
+               talloc_free(mem_ctx);
                return  0;
        }