This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Set PL_curcop to NULL in op.c:S_cop_free
authorFather Chrysostomos <sprout@cpan.org>
Sat, 10 Aug 2013 17:41:11 +0000 (10:41 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 11 Aug 2013 17:53:34 +0000 (10:53 -0700)
commit515abc43ad7e359e9f2f1fedb73378c13fd16348
tree16554c43b00f89043f1ebfbbab5936a28fd05788
parent376ccf8b794f87b0c0a827bdcadc14b71179ff42
Set PL_curcop to NULL in op.c:S_cop_free

Having PL_curcop pointing to a freed op is a Bad Idea and something
that has caused bugs in the past.

The intent of commit 1df5f7c195 was to do this, but this part of
the commit was accidentally omitted.

See <20130805200313.GS3729@plum.flirble.org>.
op.c