Merge branch 'maint-1.6.6' into maint
* maint-1.6.6: fix minor memory leak in get_tree_entry()
This commit is contained in:
commit
b599672316
@ -441,6 +441,7 @@ int get_tree_entry(const unsigned char *tree_sha1, const char *name, unsigned ch
|
||||
|
||||
if (name[0] == '\0') {
|
||||
hashcpy(sha1, root);
|
||||
free(tree);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user