diff options
Diffstat (limited to 'walker.c')
-rw-r--r-- | walker.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -56,13 +56,11 @@ static int process_tree(struct walker *walker, struct tree *tree) if (!obj || process(walker, obj)) return -1; } - free(tree->buffer); - tree->buffer = NULL; - tree->size = 0; - tree->object.parsed = 0; + free_tree_buffer(tree); return 0; } +/* Remember to update object flag allocation in object.h */ #define COMPLETE (1U << 0) #define SEEN (1U << 1) #define TO_SCAN (1U << 2) |