On 7 March 2014 13:46, Zefram via RT <bug-Sereal-Decoder@rt.cpan.org> wrote:
Show quoted text> Fri Mar 07 07:46:35 2014: Request 93607 was acted upon.
> Transaction: Ticket created by zefram@fysh.org
> Queue: Sereal-Decoder
> Subject: refcount broken in undocumented functions
> Broken in: (no value)
> Severity: (no value)
> Owner: Nobody
> Requestors: zefram@fysh.org
> Status: new
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=93607 >
>
>
> The undocumented decode_with_header{,_and_offset} functions screw
> up the refcount of the elements being put into the returned array.
> av_store takes ownership of one counted reference, but the code doesn't
> increment the refcount for that purpose.
Fix pushed as 1c1ac37b0709630832634d4ffd27d4431ea8b285.
If you have a test for this a patch would be welcomed.
Yves
--
perl -Mre=debug -e "/just|another|perl|hacker/"