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

Ethereal-dev: Re: [Ethereal-dev] free dynamic memory

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

From: ronnie sahlberg <ronniesahlberg@xxxxxxxxx>
Date: Tue, 3 Jan 2006 20:39:01 +1100
See   README.malloc

You can use se_alloc() nd friends.    memory allocated with this function will be automatically released when ethereal has finished with the capture.


You also have ep_alloc() which releases all memory when dissection of that particular packet has completed.




On 1/3/06, ext-henning.treu@xxxxxxxxx <ext-henning.treu@xxxxxxxxx > wrote:
Hi list, ext-henning.treu@xxxxxxxxx

my dissector allocs some dynamic memory through the dissecting process.
the question is: where do i need to free the memory? i want to use it during the whole dissecting process. afterwards it can be freed. is there a function to clean up after dissecting a whole capture file?

thanks
henning

_______________________________________________
Ethereal-dev mailing list
Ethereal-dev@xxxxxxxxxxxx
http://www.ethereal.com/mailman/listinfo/ethereal-dev