]> Sergey Matveev's repositories - public-inbox.git/commitdiff
eml: fix leak workaround
authorEric Wong <e@80x24.org>
Sat, 16 Oct 2021 23:23:01 +0000 (23:23 +0000)
committerEric Wong <e@80x24.org>
Sat, 16 Oct 2021 23:53:20 +0000 (23:53 +0000)
Our previous workaround didn't actually work around the leak in
<https://rt.cpan.org/Public/Bug/Display.html?id=139622> since
croak()-via-Perl was still invoked before the SV reference
count could be decremented.

Put in a proper workaround which saves warnings onto a temporary
variable and only croak after ->decode or ->encode returns; not
inside those methods.


No differences found