1
0
mirror of https://github.com/git/git.git synced 2024-09-28 04:10:41 +02:00

fix minor memory leak in get_tree_entry()

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
René Scharfe 2010-02-14 10:56:46 +01:00 committed by Junio C Hamano
parent 341d9a48cc
commit ef0065034a

View File

@ -250,6 +250,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;
}