Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Wrapping a C shared library with Perl and XSby Anonymous Monk |
on Mar 28, 2017 at 16:21 UTC ( [id://1186270]=note: print w/replies, xml ) | Need Help?? |
It might be worth pointing out for other readers that after arr() returned a malloced array and you have handled its contents it's your XS code's obligation to free() it. Otherwise, this code would have a memory leak.
In Section
Cool Uses for Perl
|
|