This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
avoid leaking @_ in goto
authorDavid Mitchell <davem@iabyn.com>
Sat, 11 Jul 2015 09:06:39 +0000 (10:06 +0100)
committerDavid Mitchell <davem@iabyn.com>
Wed, 3 Feb 2016 08:59:35 +0000 (08:59 +0000)
commit1312203610da7e0b5c8c8cf7747f48d67b22f988
tree60982597b49494ccd99dd597b9c5606de48c1a5b
parent98ba638968e34a5fa28521d6e7df96552b0636c2
avoid leaking @_ in goto

pp_goto temporarily bumps the reference count of @_ while doing
LEAVE_SCOPE(), to stop it getting prematurelly freed. If something
dies during the save stack unwinding, it will leak.
Instead, make it mortal.
pp_ctl.c
t/op/svleak.t