update-index: fix a memleak
commit1b7cb8969cb204b64b9f8ce25c86986e8144d352
authorStefan Beller <sbeller@google.com>
Sat, 21 Mar 2015 00:28:01 +0000 (20 17:28 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sun, 22 Mar 2015 19:26:31 +0000 (22 12:26 -0700)
treefd4c098d47c379d39979058033efa8ce7d3927a7
parent2d9426b049335c1a39be7ea7416094e944bfe63c
update-index: fix a memleak

`old` is not used outside the loop and would get lost
once we reach the goto.

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/update-index.c