| | 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.. maybe I've found some other problem. I have a function where a AV* array is created and returned. Who should delete/free this array? Cheers Alb -- 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."
