Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
mailinfo: release strbuf on error return in handle_boundary()
author
Rene Scharfe
<l.s.r@web.de>
Wed, 30 Aug 2017 17:49:48 +0000
(19:49 +0200)
committer
Junio 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
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(from parent 1:
11fa5e2
)
diff --git
a/mailinfo.c
b/mailinfo.c
index b1f515954608634551289f9a7142c46385187027..f2387a32675591d6da83473ef6235ba823721d1c 100644
(file)
--- a/
mailinfo.c
+++ b/
mailinfo.c
@@
-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);