On Thu, Jan 01, 2004 at 07:47:03PM +0100, Marcus Holland-Moritz wrote: | On 2004-01-01, at 18:29:16 +0000, [EMAIL PROTECTED] wrote: | | | You can simply add a CLEANUP section (see 'perldoc perlxs' and search | for CLEANUP) to your wlgetbyid() XSUB and free the memory allocated | by g_strdup(): | | CLEANUP: | free(str); /* or similar call to free the memory */ | | This should take care of your memory leakage.
Hmms... thanks, we are allways learning. Now I must look a little more to the code, because I still have some memory leakage. Thanks a lot ;) Best regards Alberto | | -- | Schmidt's Observation: | All things being equal, a fat person uses more soap | than a thin person. -- Departamento de Informatica - Universidade do Minho "The C Programming Language -- A language which combines the flexibility of assembly language with the power of assembly language."
