diff options
author | Andrew Tridgell <tridge@samba.org> | 2008-09-15 14:51:35 +1000 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-09-29 14:01:01 +0200 |
commit | 7caa8c85acfb6d6f8e16e95788fa5e84c031e111 (patch) | |
tree | 2da3a845a49a62ed25cd9c88547b776dadfeae9f /source3/lib | |
parent | acf5f2e5b049f20049cb6c549a00ba4b95322aa0 (diff) | |
download | samba-7caa8c85acfb6d6f8e16e95788fa5e84c031e111.tar.gz samba-7caa8c85acfb6d6f8e16e95788fa5e84c031e111.tar.bz2 samba-7caa8c85acfb6d6f8e16e95788fa5e84c031e111.zip |
fixed an (unlikely) memory leak
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/dbwrap_ctdb.c | 1 |
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; |