summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2008-09-15 14:51:35 +1000
committerMichael Adam <obnox@samba.org>2008-09-29 14:01:01 +0200
commit7caa8c85acfb6d6f8e16e95788fa5e84c031e111 (patch)
tree2da3a845a49a62ed25cd9c88547b776dadfeae9f /source3
parentacf5f2e5b049f20049cb6c549a00ba4b95322aa0 (diff)
downloadsamba-7caa8c85acfb6d6f8e16e95788fa5e84c031e111.tar.gz
samba-7caa8c85acfb6d6f8e16e95788fa5e84c031e111.tar.bz2
samba-7caa8c85acfb6d6f8e16e95788fa5e84c031e111.zip
fixed an (unlikely) memory leak
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/dbwrap_ctdb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/lib/dbwrap_ctdb.c b/source3/lib/dbwrap_ctdb.c
index cd37d9e917..2818634b14 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;