]> git.ipfire.org Git - thirdparty/git.git/commitdiff
mailinfo: release strbuf on error return in handle_boundary()
authorRene Scharfe <l.s.r@web.de>
Wed, 30 Aug 2017 17:49:48 +0000 (19:49 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Sep 2017 23:49:27 +0000 (08:49 +0900)
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
mailinfo.c

index b1f515954608634551289f9a7142c46385187027..f2387a32675591d6da83473ef6235ba823721d1c 100644 (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);