in reply to perl_destruct clearing memory allocated in c library
Do you call malloc or free in a file that does #include perl.h? Perl redefines them.
Do you set the PV of a SV to the buffer? Then set the LEN to 0 to prevent Perl from freeing it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: perl_destruct clearing memory allocated in c library
by justin_skariah (Initiate) on Mar 24, 2011 at 13:34 UTC | |
by ikegami (Patriarch) on Mar 24, 2011 at 18:58 UTC |