From: Martin Schwenke Date: Thu, 28 Jul 2016 02:00:27 +0000 (+1000) Subject: ctdb-daemon: Fix CID 1363233 Resource leak (RESOURCE_LEAK) X-Git-Tag: samba-4.3.12~75 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e360805c0f8fc02ad826c11b3088ed11347bfd9;p=thirdparty%2Fsamba.git ctdb-daemon: Fix CID 1363233 Resource leak (RESOURCE_LEAK) BUG: https://bugzilla.samba.org/show_bug.cgi?id=12110 Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs (cherry picked from commit 74aca5f4c671d9f15ae6c3a901978a1cf247dd6f) --- diff --git a/ctdb/server/ctdb_recover.c b/ctdb/server/ctdb_recover.c index 23f793be64f..19a84d20145 100644 --- a/ctdb/server/ctdb_recover.c +++ b/ctdb/server/ctdb_recover.c @@ -1008,6 +1008,7 @@ int32_t ctdb_control_try_delete_records(struct ctdb_context *ctdb, TDB_DATA inda if (data.dsize < sizeof(struct ctdb_ltdb_header)) { DEBUG(DEBUG_CRIT,(__location__ " bad ltdb record in indata\n")); + talloc_free(records); return -1; }