git-verify-pack: free pack after use and a cleanup
commitd0d619c8c50b90fbbd6a7e0994fde073341bf92b
authorRene Scharfe <rene.scharfe@lsrfire.ath.cx>
Thu, 10 Aug 2006 15:02:35 +0000 (10 17:02 +0200)
committerJunio C Hamano <junkio@cox.net>
Thu, 10 Aug 2006 21:15:49 +0000 (10 14:15 -0700)
treee1a8bc48c14c92eea7f2bf7dc2d62c29c3c1681f
parentfc5fc50980958f742a9f3d79fb7a64f02e87877a
git-verify-pack: free pack after use and a cleanup

Plug memory leak in verify_one_pack() by freeing the struct packed_git
we got from add_packed_git().  Also rename g to pack and pull an
assignment out of an if statement while we're at it.

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