This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
make postav and valstr mortal so they're freed soonish
authorTony Cook <tony@develop-help.com>
Tue, 11 Aug 2020 00:46:38 +0000 (10:46 +1000)
committerKarl Williamson <khw@cpan.org>
Mon, 17 Aug 2020 02:17:01 +0000 (20:17 -0600)
commitb98a3a6d08f681353d0b357fd1cce437c93656e7
tree5daaa95a74cd621adf98c399b6f182dbdbec4d8d
parent41463160be4baa0d81d9d8297508a1b9bdcaa206
make postav and valstr mortal so they're freed soonish

these can leak if the value being dumped (or any part of it)
had get magic and that magic throws an exception.

Several other SVs can also leak in that case, but cleaning those up
is more complex.
dist/Data-Dumper/Dumper.xs