summaryrefslogtreecommitdiff
path: root/t/op/threads-dirh.t
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2015-06-25 16:08:02 +0100
committerDavid Mitchell <davem@iabyn.com>2016-02-03 08:59:33 +0000
commitcd17cc2e752d3e7e4d2cbdac9869cc7de3e9b075 (patch)
treeab1009eba75e9bb58a85166a2d5f50ddf8ec7777 /t/op/threads-dirh.t
parent88c11d84310c49339e73fcab80dad89a73d74263 (diff)
downloadperl-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