git.samba.org
/
vlendec
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1dfac0
)
ctdb-tools: Free record if it does not contain valid data
author
Amitay Isaacs
<amitay@gmail.com>
Fri, 5 Aug 2016 02:34:13 +0000
(12:34 +1000)
committer
Stefan Metzmacher
<metze@samba.org>
Wed, 10 Aug 2016 09:24:37 +0000
(11:24 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12121
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
(cherry picked from commit
814002c9a10227fd6cc13fdc974d2312201d7c19
)
ctdb/tools/ctdb.c
patch
|
blob
|
history
diff --git
a/ctdb/tools/ctdb.c
b/ctdb/tools/ctdb.c
index da218aa1e357738308a5db16244b4a55d013a717..a92435ef038225a9fff876f38373f51e6908f7e6 100644
(file)
--- a/
ctdb/tools/ctdb.c
+++ b/
ctdb/tools/ctdb.c
@@
-2038,6
+2038,7
@@
static void traverse_handler(uint64_t srvid, TDB_DATA data, void *private_data)
}
if (rec->data.dsize == 0) {
+ talloc_free(rec);
return;
}