Sorry, I think I overlooked this: https://github.com/benkasminbullock/Math-Factor-XS/blob/master/XS.xs#L62
This is reducing the reference count, right? So no leak. Sorry about the noise. On 30 March 2013 11:37, Ben Bullock <benkasminbull...@gmail.com> wrote: > I am just looking at someone else's code here: > > https://github.com/benkasminbullock/Math-Factor-XS/blob/master/XS.xs#L41 > > From the recent discussion on this list, I get the impression that is a > memory leak of "factors". Is that a correct understanding? Should I report > this as a bug? > > Also, what is the test module for XS memory leaks on objects created via > newAV, newHV? > >