Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Perl XS: garbage-collecting my malloc'd buffer

by edan (Curate)
on Mar 04, 2003 at 12:30 UTC ( [id://240310]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    SV *
    my_xs_func(p_struct, len)
    ...
            XPUSHs(sv_2mortal(newSVpv(tmp_buffer, bytes_read)));
    
            free(tmp_buffer);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://240310]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-04-25 17:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found