ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Ethereal-dev: [Ethereal-dev] Freeing memory on exit?

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Lars Ruoff" <lars.ruoff@xxxxxxxxxxxxxxxxxx>
Date: Wed, 20 Aug 2003 17:07:10 +0200
Is there a mechanism in Ethereal to call a user-specified function just
before Ethereal exits?
In some module i am coding, i'm allocating free store, which has to be
persistent during the whole ethereal session and which i would like to free
on exit.
In C++, i would make this with a global static object, freeing the memory in
the destructor, but i don't know how to do something similar in C.
A solution would be to register a callback-routine which would be called by
Ethereal on exit.
I there perhaps something like that implemented?

Lars.