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.
In reply to Re^2: XS malloc and free
by ikegami
in thread XS malloc and free
by Brutha
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |