summaryrefslogtreecommitdiff
path: root/ctdb
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2014-07-22 11:19:13 +0000
committerAmitay Isaacs <amitay@samba.org>2014-07-23 07:18:11 +0200
commit9a4a9ccda397e20b0a894541f4f1a6d24e09bf19 (patch)
treea33368483d09ee99b485cd395e2eee9cc1653e4f /ctdb
parent2f86c7d3f8231410709be78a04f1f589c2c08ac0 (diff)
downloadsamba-9a4a9ccda397e20b0a894541f4f1a6d24e09bf19.tar.gz
ctdb-vacuum: Fix talloc hierarchy in delete_marshall_traverse
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'ctdb')
-rw-r--r--ctdb/server/ctdb_vacuum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/server/ctdb_vacuum.c b/ctdb/server/ctdb_vacuum.c
index ce3c600bb3b..c7f052de595 100644
--- a/ctdb/server/ctdb_vacuum.c
+++ b/ctdb/server/ctdb_vacuum.c
@@ -304,7 +304,7 @@ static int delete_marshall_traverse(void *param, void *data)
}
old_size = talloc_get_size(recs->records);
- recs->records = talloc_realloc_size(NULL, recs->records, old_size + rec->length);
+ recs->records = talloc_realloc_size(recs, recs->records, old_size + rec->length);
if (recs->records == NULL) {
DEBUG(DEBUG_ERR,(__location__ " Failed to expand\n"));
return 0;