diff options
author | David Mitchell <davem@iabyn.com> | 2015-06-25 16:08:02 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2016-02-03 08:59:33 +0000 |
commit | cd17cc2e752d3e7e4d2cbdac9869cc7de3e9b075 (patch) | |
tree | ab1009eba75e9bb58a85166a2d5f50ddf8ec7777 /t/op/threads-dirh.t | |
parent | 88c11d84310c49339e73fcab80dad89a73d74263 (diff) | |
download | perl-cd17cc2e752d3e7e4d2cbdac9869cc7de3e9b075.tar.gz |
pp_goto: SvREFCNT_dec(oldcv) *after* undef test
pp_goto does a LEAVE, then checks that the new CV hasn't been undefed
by the LEAVE. If it has, it croaks.
Move the decrementing of the old CV's ref count and depth to *after*
this check, since the POPSUB done during the croak unwind will do the
decrement also. Otherwise the old sub will be doubly freed.
Diffstat (limited to 't/op/threads-dirh.t')
0 files changed, 0 insertions, 0 deletions