summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2015-12-25 22:03:10 +0000
committerDavid Mitchell <davem@iabyn.com>2016-02-03 09:19:17 +0000
commitd77cab044d85b109271a8fd3f99e99ac1392a029 (patch)
tree5bd72bd08c366316584b529f0ff43bc57cb8d774 /regexec.c
parentd9203e036f608afd529c54a69f854a528171f784 (diff)
downloadperl-d77cab044d85b109271a8fd3f99e99ac1392a029.tar.gz
MULTICALL should clear scope after each call
RT #116577 Lexicals etc were only being freed at the end of the MULTICALL, not after each individual call to the sub.
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/regexec.c b/regexec.c
index 9aec6c3ca5..a196e7afdd 100644
--- a/regexec.c
+++ b/regexec.c
@@ -6664,6 +6664,7 @@ S_regmatch(pTHX_ regmatch_info *reginfo, char *startpos, regnode *prog)
before = (IV)(SP-PL_stack_base);
PL_op = nop;
CALLRUNOPS(aTHX); /* Scalar context. */
+ PERL_UNUSED_VAR(saveix_floor); /* used by MULTICALL */
SPAGAIN;
if ((IV)(SP-PL_stack_base) == before)
ret = &PL_sv_undef; /* protect against empty (?{}) blocks. */