From 400cd6bf22cbd3f0d8e555aa2f1e4751869960bf Mon Sep 17 00:00:00 2001 From: Rene Scharfe Date: Wed, 30 Aug 2017 19:49:48 +0200 Subject: mailinfo: release strbuf on error return in handle_boundary() Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano --- mailinfo.c | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.3