in reply to Re: Attempt to free unreferenced scalar
in thread Attempt to free unreferenced scalar

This is an XS error and should appear if you apply sv_2mortal to a scalar SV more then one time, like sv_2mortal(sv_2mortal(newSViv(0))).
  • Comment on Re^2: Attempt to free unreferenced scalar