git.samba.org
/
tprouty
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f495968
)
fixed an (unlikely) memory leak
author
Andrew Tridgell
<tridge@samba.org>
Mon, 29 Sep 2008 19:04:57 +0000
(12:04 -0700)
committer
Jeremy Allison
<jra@samba.org>
Mon, 29 Sep 2008 19:04:57 +0000
(12:04 -0700)
source/lib/dbwrap_ctdb.c
patch
|
blob
|
history
diff --git
a/source/lib/dbwrap_ctdb.c
b/source/lib/dbwrap_ctdb.c
index e82e75d8b46832f085b0010fea5bf4b2ec891ca1..1e3a97f06548fa38dbe4a017e47363b025569123 100644
(file)
--- a/
source/lib/dbwrap_ctdb.c
+++ b/
source/lib/dbwrap_ctdb.c
@@
-440,6
+440,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;