summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2017-08-10 11:42:10 +0200
committerJunio C Hamano <gitster@pobox.com>2017-08-10 15:40:55 -0700
commit83cd6f901762f7358c0b249d8e7efd5476ab66d4 (patch)
tree6745b6104761f0c433085d5189370b330b163bc9 /commit.c
parent3d9c5b5c4461957fbbc0479e037990db04ebb740 (diff)
downloadgit-83cd6f901762f7358c0b249d8e7efd5476ab66d4.tar.gz
fsck: free buffers on error in fsck_obj()rs/fsck-obj-leakfix
Move the code for releasing tree buffers and commit buffers in fsck_obj() to the end of the function and make sure it's executed no matter of an error is encountered or not. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions