Skip to content

Commit

Permalink
Merge branch 'maint-1.6.6' into maint
Browse files Browse the repository at this point in the history
* maint-1.6.6:
  fix minor memory leak in get_tree_entry()
  • Loading branch information
Junio C Hamano committed Feb 15, 2010
2 parents 9b25048 + ef00650 commit b599672
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tree-walk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit b599672

Please sign in to comment.