sequencer: release strbuf after use in save_head()
[gitweb.git] / mailinfo.c
index b1f515954608634551289f9a7142c46385187027..f2387a32675591d6da83473ef6235ba823721d1c 100644 (file)
@@ -928,6 +928,7 @@ static int handle_boundary(struct mailinfo *mi, struct strbuf *line)
                        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);