From: Andrew Tridgell Date: Mon, 15 Sep 2008 04:51:35 +0000 (+1000) Subject: fixed an (unlikely) memory leak X-Git-Tag: samba-4.0.0alpha6~769^2~228^2~110 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7caa8c85acfb6d6f8e16e95788fa5e84c031e111;p=thirdparty%2Fsamba.git fixed an (unlikely) memory leak --- diff --git a/source3/lib/dbwrap_ctdb.c b/source3/lib/dbwrap_ctdb.c index cd37d9e917b..2818634b143 100644 --- a/source3/lib/dbwrap_ctdb.c +++ b/source3/lib/dbwrap_ctdb.c @@ -442,6 +442,7 @@ static struct db_record *db_ctdb_fetch_locked_persistent(struct db_ctdb_ctx *ctx recp = talloc(rec, struct db_record *); if (recp == NULL) { ctx->db->transaction_cancel(ctx->db); + talloc_free(rec); return NULL; } *recp = rec;