Skip to content

Commit

Permalink
Merge branch 'maint'
Browse files Browse the repository at this point in the history
* maint:
  fix minor memory leak in get_tree_entry()
  • Loading branch information
Junio C Hamano committed Feb 15, 2010
2 parents 7e94805 + b599672 commit 7e5eb8f
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 7e5eb8f

Please sign in to comment.