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>

Stefan Beller committed Mar 20, 2015 at 17:28 UTC 1b7cb8969cb204b64b9f8ce25c86986e8144d352
1 file changed +1
builtin/update-index.c
+1
@@ -584,6 +584,7 @@ static int do_reupdate(int ac, const char **av,
584 path = xstrdup(ce->name);
585 update_one(path);
586 free(path);
587 + free(old);
588 if (save_nr != active_nr)
589 goto redo;
590 }