Skip to content

Commit

Permalink
tree-cache: Free the tree upon the detection of a corrupted child
Browse files Browse the repository at this point in the history
  • Loading branch information
nulltoken committed Nov 19, 2013
1 parent e1ce524 commit 7b69289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tree-cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ static int read_tree_internal(git_tree_cache **out,

for (i = 0; i < tree->children_count; ++i) {
if (read_tree_internal(&tree->children[i], &buffer, buffer_end, tree) < 0)
return -1;
goto corrupted;
}
}

Expand Down

0 comments on commit 7b69289

Please sign in to comment.