Commit 7b69289f by nulltoken

tree-cache: Free the tree upon the detection of a corrupted child

parent e1ce5249
...@@ -140,7 +140,7 @@ static int read_tree_internal(git_tree_cache **out, ...@@ -140,7 +140,7 @@ static int read_tree_internal(git_tree_cache **out,
for (i = 0; i < tree->children_count; ++i) { for (i = 0; i < tree->children_count; ++i) {
if (read_tree_internal(&tree->children[i], &buffer, buffer_end, tree) < 0) if (read_tree_internal(&tree->children[i], &buffer, buffer_end, tree) < 0)
return -1; goto corrupted;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment