vacuum: Fix talloc hierarchy in delete_marshall_traverse
authorAmitay Isaacs <amitay@gmail.com>
Tue, 22 Jul 2014 11:19:13 +0000 (11:19 +0000)
committerAmitay Isaacs <amitay@gmail.com>
Wed, 23 Jul 2014 08:05:17 +0000 (18:05 +1000)
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
(Imported from commit 9a4a9ccda397e20b0a894541f4f1a6d24e09bf19)

server/ctdb_vacuum.c

index ce3c600bb3b3005820c0f4b071c119efcd4d4d05..c7f052de59512923b7fe1da669a0cd5d9f636a4c 100644 (file)
@@ -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;