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>
maint
Rene Scharfe 2017-08-30 19:49:48 +02:00 committed by Junio C Hamano
parent 11fa5e2a81
commit 400cd6bf22
1 changed files with 1 additions and 0 deletions

View File

@ -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);