diff options
author | Dave Mitchell <davem@fdisolutions.com> | 2004-01-17 16:12:32 +0000 |
---|---|---|
committer | Dave Mitchell <davem@fdisolutions.com> | 2004-01-17 16:12:32 +0000 |
commit | 20674a5119e5679a0c9f3c9141d23479fac24d42 (patch) | |
tree | a7599adfe749d92c3c1e340401d2cf679de77a8c /scope.c | |
parent | edde27ff7b4e52d7e16fe2146db02a3f205a9ac2 (diff) | |
download | perl-20674a5119e5679a0c9f3c9141d23479fac24d42.tar.gz |
[perl #24914] freeing a CV reference that was currently being
executed caused coredumps
p4raw-id: //depot/perl@22167
Diffstat (limited to 'scope.c')
-rw-r--r-- | scope.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1045,8 +1045,10 @@ Perl_leave_scope(pTHX_ I32 base) break; case SAVEt_COMPPAD: PL_comppad = (PAD*)SSPOPPTR; - if (PL_comppad) + if (PL_comppad) { PL_curpad = AvARRAY(PL_comppad); + SvREFCNT_dec(PL_comppad); + } else PL_curpad = Null(SV**); break; |