Hi everyone,

I understand initialization of an XS module may be modified using BOOT.
However, there seems to be no counterpart of BOOT. How do I e.g. free
memory I allocated in BOOT?

Is it okay to call call_atexit() for this purpose? DynaLoader does it...
If I may use this function, why isn't it documented in perlapi? ;)

Or is the current practice to write an XS function that e.g. frees the
memory allocate at BOOT and call it in an END handler in the module's
Perl code?

Sorry if this is a FAQ but I couldn't find anything in the docs about it...

TIA!

-- 
Dipl.-Inform. Gregor Goldbach (PKI Team)
Phone: +49 40 808077-621 Fax: +49 40 808077-556 Mail:goldb...@dfn-cert.de

DFN-CERT Services GmbH, https://www.dfn-cert.de, Phone  +49 40 808077-555
Sitz / Register: Hamburg, AG Hamburg, HRB 88805, Ust-IdNr.:  DE 232129737
Sachsenstraße 5,  20097 Hamburg/Germany, CEO: Dr. Klaus-Peter Kossakowski

                       16. DFN-Workshop Sicherheit in vernetzten Systemen
                                          https://www.dfn-cert.de/ws2009/

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to