]> git.ipfire.org Git - thirdparty/git.git/commit - unpack-trees.c
unpack-trees: plug a memory leak
authorFelipe Contreras <felipe.contreras@gmail.com>
Tue, 13 Aug 2013 18:27:58 +0000 (20:27 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 13 Aug 2013 21:37:30 +0000 (14:37 -0700)
commite28f7641592c5b907df2f084112fa22a31500810
tree2d410f40aa2a1f95f83f168078d426fe64990ffc
parent425df881e08bed7a8fcc9a23f452cff792f9ec6c
unpack-trees: plug a memory leak

Before overwriting the destination index, first let's discard its
contents.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Tested-by: Лежанкин Иван <abyss.7@gmail.com> wrote:
Reviewed-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
unpack-trees.c