aboutsummaryrefslogtreecommitdiffstats
path: root/commit-graph.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2022-09-07 13:36:53 +0200
committerJunio C Hamano <gitster@pobox.com>2022-09-07 12:33:28 -0700
commitfffe7d81a402ced9ede961f55cfc617fe08e71ef (patch)
tree59b1f236c95aa73021281e83f24014db63484cb1 /commit-graph.c
parentGit 2.37.3 (diff)
downloadgit-fffe7d81a402ced9ede961f55cfc617fe08e71ef.tar.gz
git-fffe7d81a402ced9ede961f55cfc617fe08e71ef.zip
diff-no-index: release strbuf on queue error
The strbuf is small and we are about to exit, so we could leave its cleanup to the OS. If we release it explicitly at all, however, then we should do it on early exit as well. Move the strbuf_release call to a new cleanup section at the end and make sure all execution paths go through it. Suggested-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-graph.c')
0 files changed, 0 insertions, 0 deletions