in reply to perl XS - suspected memory leak (works)

newSVnv takes an NV (double), not an unsigned long long int. Maybe that's the cause of your feelings? Anyway, read the documentation of Devel::Peek and use it, the REFCNT should help you in debugging memory leaks.

Replies are listed 'Best First'.
Re^2: perl XS - suspected memory leak
by Anonymous Monk on Apr 04, 2016 at 17:26 UTC
    newSVnv takes an NV (double), not an unsigned long long int.
    Oops, disregard that. I checked and it's a function, not a macro.