Re: [PATCH] fsck: free buffers on error in fsck_obj()

2017-08-11 Thread Jeff King
On Thu, Aug 10, 2017 at 11:42:10AM +0200, René Scharfe wrote: > 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. This looks good to me. > @@ -374,7 +369,12 @@ static

[PATCH] fsck: free buffers on error in fsck_obj()

2017-08-10 Thread René Scharfe
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 --- builtin/fsck.c | 22 +++--- 1 file changed, 11