http://qs321.pair.com?node_id=123395


in reply to Re: Re: XS routine returns an extra depth of array refs
in thread XS routine returns an extra depth of array refs

It should be newRV_inc. :-)

Only with inline the refcounter of the SV gets auto-incremented. With XS you have to that yourself.

Update: For clarity, only the refcounter of the SV that gets returned! Other SV*'s you have to inc manually!