Permalink
Browse files

Merge branch 'maint'

* maint:
  fix minor memory leak in get_tree_entry()
  • Loading branch information...
2 parents 7e94805 + b599672 commit 7e5eb8f1834722507e2d2171a253b78b1d924458 @gitster gitster committed Feb 15, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 tree-walk.c
View
1 tree-walk.c
@@ -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;
}

0 comments on commit 7e5eb8f

Please sign in to comment.