This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
pad.c:pad_free: Don’t reset PL_padix if using pad_reset
authorFather Chrysostomos <sprout@cpan.org>
Wed, 27 Aug 2014 15:27:03 +0000 (08:27 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Thu, 28 Aug 2014 20:04:17 +0000 (13:04 -0700)
commit53d3c048a927d1699269806f3c36facac8c95023
treea89048e35790014119d17f00b6e3e8c2021ffc94
parentf072719039fbeddb3ffe0c3971cd64af872f5c3d
pad.c:pad_free: Don’t reset PL_padix if using pad_reset

pad_reset causes PL_padix to be reset at the beginning of each state-
ment, so that operator targets can be reused.

If we also reset it when freeing an operator, then theoretically tar-
gets from operators later on in the same statement might be reused.  I
can’t come up with a test case, but it’s better to be safe than sorry.
pad.c