Re: XS: Free memory

2009-09-09 Thread Paul Johnson
On Sun, Sep 06, 2009 at 09:30:04PM +0100, Patrick Dupre wrote: > Hello, Hello, > When I do: > XPUSHs (sv_2mortal (newRV_inc ((SV*) E_rot_up)) ; > Do I need to free the memory ? > I use the XPUSHs to pass an array of real to a perl sub, but I am > not sure that after the call, this memory sapce is

Re: XS: Free memory

2009-09-06 Thread Uri Guttman
> "PD" == Patrick Dupre writes: PD> XPUSHs (sv_2mortal (newRV_inc ((SV*) E_rot_up)) ; i can't answer your question but i don't consider XS questions appropriate for a beginner's list. XS is at least immediate to expert in skill level. so please seek other sites for help with this. there ar

XS: Free memory

2009-09-06 Thread Patrick Dupre
Hello, When I do: XPUSHs (sv_2mortal (newRV_inc ((SV*) E_rot_up)) ; Do I need to free the memory ? I use the XPUSHs to pass an array of real to a perl sub, but I am not sure that after the call, this memory sapce is freed. Can I desallocate the memory space manually ? I tried to use valgrind to