|No such thing as a small change|
Perl XS: garbage-collecting my malloc'd bufferby edan (Curate)
|on Mar 03, 2003 at 14:26 UTC||Need Help??|
edan has asked for the
wisdom of the Perl Monks concerning the following question:
Hi monks, I need a bit of input here...
I am writing my first perl (V5.6.1) extension...
Now, I want to call the function and return the buffer to my perl program.
This returned my int return value and the buffer to my perl program...
Of course, calling malloc() without calling free() rang
So now, my code looks like this:
I think this solves my memory-leak problem, but
Can someone tell me if I am going in the right direction, and give a few pointers?