summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2017-11-26 16:33:09 -0800
committerFather Chrysostomos <sprout@cpan.org>2017-11-26 16:33:09 -0800
commit8276e333951d35e9f1f651314089b54c9a3762c4 (patch)
tree63fa1422a9b0057271ddc44bcc0ac28661800663
parent0b4678bf303b7fe204f4cf0bd124b1f9db5b13f0 (diff)
downloadperl-8276e333951d35e9f1f651314089b54c9a3762c4.tar.gz
toke.c: Don’t leak memory
-rw-r--r--toke.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/toke.c b/toke.c
index ececc94314..a3d911b1c4 100644
--- a/toke.c
+++ b/toke.c
@@ -9331,6 +9331,7 @@ S_parse_ident(pTHX_ char **s, char **d, char * const e, int allow_package,
char *d2;
Newx(d, *s - olds + saw_tick + 2, char); /* +2 for $# */
d2 = d;
+ SAVEFREEPV(d);
Perl_warner(aTHX_ packWARN(WARN_SYNTAX),
"Old package separator used in string");
if (olds[-1] == '#')