diff options
author | Tony Cook <tony@develop-help.com> | 2014-02-21 09:12:58 +1100 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2014-02-21 09:12:58 +1100 |
commit | d06ddc79cdb5078a4f9a22057fc84f47e68a717b (patch) | |
tree | 9ee9c61d079fcc6b9d5a3719811cd2bdb5d67458 /op.c | |
parent | 33eef97194699687c6732e8ec14c1c7867db21fd (diff) | |
download | perl-d06ddc79cdb5078a4f9a22057fc84f47e68a717b.tar.gz |
[perl #120939] at least fix the leak in const_av_xsub
Diffstat (limited to 'op.c')
-rw-r--r-- | op.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |