Commit 1c3edb30 by nulltoken

tree: prevent git_tree_entry_free() from segfaulting when being passed a NULL tree_entry

parent 9f99c5de
......@@ -140,6 +140,9 @@ static int tree_key_search(git_vector *entries, const char *filename, size_t fil
void git_tree_entry_free(git_tree_entry *entry)
{
if (entry == NULL)
return;
git__free(entry);
}
......
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