Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRene Scharfe <l.s.r@web.de>2017-08-30 20:49:48 +0300
committerJunio C Hamano <gitster@pobox.com>2017-09-07 02:49:27 +0300
commit400cd6bf22cbd3f0d8e555aa2f1e4751869960bf (patch)
treea5a3445b7e6871af47bc7bc70a4469f68b1f3287 /mailinfo.c
parent11fa5e2a81cc921b55a4a91f2e5f39d423f18467 (diff)
mailinfo: release strbuf on error return in handle_boundary()
Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'mailinfo.c')
-rw-r--r--mailinfo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mailinfo.c b/mailinfo.c
index b1f5159546..f2387a3267 100644
--- a/mailinfo.c
+++ b/mailinfo.c
@@ -928,6 +928,7 @@ again:
error("Detected mismatched boundaries, can't recover");
mi->input_error = -1;
mi->content_top = mi->content;
+ strbuf_release(&newline);
return 0;
}
handle_filter(mi, &newline);