mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-24 21:28:06 +00:00
tree-cache: Free the tree upon the detection of a corrupted child
This commit is contained in:
parent
e1ce5249e5
commit
7b69289f4e
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user