|
|
| P is for Practical | |
| PerlMonks |
Re: XS malloc and freeby Courage (Parson) |
| on Feb 07, 2006 at 16:21 UTC ( #528552=note: print w/ replies, xml ) | Need Help?? |
|
from perldoc perlguts You do not free SV, you decrement its usage, and, when refcount goes to zero, it will be destroyed, and may be some destruction-time action will be activated addition to free memory out from external library, consult that library's logic. Perl do not uses external char*, it will copy its data into newly created SV
Best regards,
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||