summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2014-02-21 09:12:58 +1100
committerTony Cook <tony@develop-help.com>2014-02-21 09:12:58 +1100
commitd06ddc79cdb5078a4f9a22057fc84f47e68a717b (patch)
tree9ee9c61d079fcc6b9d5a3719811cd2bdb5d67458 /op.c
parent33eef97194699687c6732e8ec14c1c7867db21fd (diff)
downloadperl-d06ddc79cdb5078a4f9a22057fc84f47e68a717b.tar.gz
[perl #120939] at least fix the leak in const_av_xsub
Diffstat (limited to 'op.c')
-rw-r--r--op.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/op.c b/op.c
index f0360ed225..7bbae54e0e 100644
--- a/op.c
+++ b/op.c
@@ -12478,7 +12478,7 @@ const_av_xsub(pTHX_ CV* cv)
Perl_croak(aTHX_ "Magical list constants are not supported");
if (GIMME_V != G_ARRAY) {
EXTEND(SP, 1);
- ST(0) = newSViv((IV)AvFILLp(av)+1);
+ ST(0) = sv_2mortal(newSViv((IV)AvFILLp(av)+1));
XSRETURN(1);
}
EXTEND(SP, AvFILLp(av)+1);