unpack-trees: plug a memory leak
authorFelipe Contreras <redacted>
Tue, 13 Aug 2013 18:27:58 +0000 (20:27 +0200)
committerJunio C Hamano <redacted>
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 <redacted>
Tested-by: Лежанкин Иван <redacted> wrote:
Reviewed-by: René Scharfe <redacted>
Signed-off-by: Junio C Hamano <redacted>
unpack-trees.c
git clone https://git.99rst.org/PROJECT