Fix small memory leaks induced by diff_tree_setup_paths
authorMike Hommey <mh@glandium.org>
Tue, 11 Dec 2007 21:59:55 +0000 (22:59 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 12 Dec 2007 18:59:22 +0000 (10:59 -0800)
commit03b69c7606267bc978c69cf88fcd7a8edf8175bc
tree7305a71d161adf2d7db014cacea71916dc8b874d
parentb0fe0d7258951779b790190b10ca21ffc5573546
Fix small memory leaks induced by diff_tree_setup_paths

Run diff_tree_release_paths in the appropriate places, and add a test to
avoid NULL dereference. Better safe than sorry.

Signed-off-by: Mike Hommey <mh@glandium.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-blame.c
builtin-reset.c
tree-diff.c