summaryrefslogtreecommitdiff
path: root/server-info.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2017-04-16 16:55:46 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-04-18 00:37:10 (GMT)
commitbe686f03e0f4c4f14f1d4ae9b1b35836168a0a4b (patch)
tree2c362df53918fca9ec5db1e3fdb535e2eccc9ea6 /server-info.c
parentac8ce18d89acccaa7a66900adff75d4aeb6ec80b (diff)
downloadgit-be686f03e0f4c4f14f1d4ae9b1b35836168a0a4b.zip
git-be686f03e0f4c4f14f1d4ae9b1b35836168a0a4b.tar.gz
git-be686f03e0f4c4f14f1d4ae9b1b35836168a0a4b.tar.bz2
files_for_each_reflog_ent_reverse(): close stream and free strbuf on error
Exit the loop orderly through the cleanup code, instead of dashing out with logfp still open and sb leaking. Found with Cppcheck. Signed-off-by: Rene Scharfe <l.s.r@web.de> Reviewed-by: Jeff King <peff@peff.net> Reviewed-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'server-info.c')
0 files changed, 0 insertions, 0 deletions