summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Rene Scharfe <l.s.r@web.de>2017-08-30 19:49:48 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-09-07 08:49:27 +0900
commit400cd6bf22cbd3f0d8e555aa2f1e4751869960bf (patch)
treea5a3445b7e6871af47bc7bc70a4469f68b1f3287
parentmailinfo: release strbuf after use in handle_from() (diff)
downloadtgif-400cd6bf22cbd3f0d8e555aa2f1e4751869960bf.tar.xz
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>
-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);