Code

git-tar-tree: fix minor memory leak
authorRene Scharfe <rene.scharfe@lsrfire.ath.cx>
Fri, 4 Aug 2006 08:54:08 +0000 (10:54 +0200)
committerJunio C Hamano <junkio@cox.net>
Fri, 4 Aug 2006 09:08:20 +0000 (02:08 -0700)
commit7e18e56920bd38ffc1f2c068d943bfd3f012473d
tree70e975c14abc04400d57214404e4439379af9261
parentd249b455475977f305240bb73473f25d040012cf
git-tar-tree: fix minor memory leak

Free the root tree object buffer when we're done, plugging a minor leak
in generate_tar().  Note: we cannot simply free(tree.buf) because this
pointer is modified by tree_entry() calls in traverse_tree().

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-tar-tree.c