We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ae0d079 + ba3a08c commit 52b7ab3Copy full SHA for 52b7ab3
1 file changed
builtin/fsck.c
@@ -180,7 +180,13 @@ static void mark_object_reachable(struct object *obj)
180
181
static int traverse_one_object(struct object *obj)
182
{
183
- return fsck_walk(obj, obj, &fsck_walk_options);
+ int result = fsck_walk(obj, obj, &fsck_walk_options);
184
+
185
+ if (obj->type == OBJ_TREE) {
186
+ struct tree *tree = (struct tree *)obj;
187
+ free_tree_buffer(tree);
188
+ }
189
+ return result;
190
}
191
192
static int traverse_reachable(void)
0 commit comments