git://git.exim.org
/
users
/
heiko
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99ea5f6
)
Release unused memory in parse_quote_2047()
author
Jeremy Harris
<jgh146exb@wizmail.org>
Fri, 10 Jul 2020 21:49:56 +0000
(22:49 +0100)
committer
Jeremy Harris
<jgh146exb@wizmail.org>
Fri, 10 Jul 2020 21:49:56 +0000
(22:49 +0100)
src/src/parse.c
patch
|
blob
|
history
diff --git
a/src/src/parse.c
b/src/src/parse.c
index acece9b782aed90045eed3fe44b699655a1eb258..2b2ffd34129ad0e4aaabaf74ed98b493040f3285 100644
(file)
--- a/
src/src/parse.c
+++ b/
src/src/parse.c
@@
-904,8
+904,13
@@
for (s = string; len > 0; s++, len--)
{ g = string_catn(g, s, 1); first_byte = FALSE; }
}
-g = string_catn(g, US"?=", 2);
-return coded ? string_from_gstring(g) : string;
+if (coded)
+ string = string_from_gstring(g = string_catn(g, US"?=", 2));
+else
+ g->ptr = -1;
+
+gstring_release_unused(g);
+return string;
}