summaryrefslogtreecommitdiff
path: root/mailinfo.c
diff options
context:
space:
mode:
authorRene Scharfe <l.s.r@web.de>2017-08-30 17:49:48 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-09-06 23:49:27 (GMT)
commit400cd6bf22cbd3f0d8e555aa2f1e4751869960bf (patch)
treea5a3445b7e6871af47bc7bc70a4469f68b1f3287 /mailinfo.c
parent11fa5e2a81cc921b55a4a91f2e5f39d423f18467 (diff)
downloadgit-400cd6bf22cbd3f0d8e555aa2f1e4751869960bf.zip
git-400cd6bf22cbd3f0d8e555aa2f1e4751869960bf.tar.gz
git-400cd6bf22cbd3f0d8e555aa2f1e4751869960bf.tar.bz2
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 b1f5159..f2387a3 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);