Prevent double frees with lexical constants
authorFather Chrysostomos <sprout@cpan.org>
Sat, 24 Nov 2012 07:32:55 +0000 (23:32 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Sat, 24 Nov 2012 15:35:50 +0000 (07:35 -0800)
commit4ded55f35550b45910091ebeac7889f08d209fe4
tree86646965b44c24d9d96a0d05ece22b129f6748e2
parent7e18702058e5564da44e84546c67056637b62d83
Prevent double frees with lexical constants

my sub foo() { 2 }

This produces a double free, because SAVEPADSVANDMORTALIZE causes the
reference count to go down on scope exit, and nothing was increment-
ing it to compensate.
pp.c
t/cmd/lexsub.t