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

newSVnv takes an NV (double), not an unsigned long long int.
Oops, disregard that. I checked and it's a function, not a macro.