in reply to Re: XS malloc and free
in thread XS malloc and free
He's not asking about freeing the SV. He asking about freeing the string from which he created an SV.
Furthermore, SvREFCNT_dec should not be used here. Making the SV mortal (using sv_2mortal) will automatically free the SV at the end of the XSUB. Think of sv_2mortal as a delayed SvREFCNT_dec.
|
|---|