diff options
author | Dave Mitchell <davem@fdisolutions.com> | 2004-01-20 00:16:42 +0000 |
---|---|---|
committer | Dave Mitchell <davem@fdisolutions.com> | 2004-01-20 00:16:42 +0000 |
commit | b36bdecab13f885c556206f71bfc47083b33107e (patch) | |
tree | cf1e451df96791b01c3da200598c5312387dbbcc /pp_sort.c | |
parent | 1bf2966364b6356e9050b17d8920dd4a8ce27d97 (diff) | |
download | perl-b36bdecab13f885c556206f71bfc47083b33107e.tar.gz |
second attempt to fix [perl #24914] freeing a CV reference that was
currently being executed caused coredumps. The dounwind called by
die unwinds all the contexts on the context stack before unwinding
the save stack. To stop premature freeing of the CV, hold
references to it on both stacks.
p4raw-id: //depot/perl@22182
Diffstat (limited to 'pp_sort.c')
-rw-r--r-- | pp_sort.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -1524,8 +1524,6 @@ PP(pp_sort) cx->cx_type = CXt_SUB; cx->blk_gimme = G_SCALAR; PUSHSUB(cx); - if (!CvDEPTH(cv)) - (void)SvREFCNT_inc(cv); /* in preparation for POPSUB */ } PL_sortcxix = cxstack_ix; |