Ethereal-dev: RE: 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.

Date: Tue, 3 Jan 2006 11:46:56 +0100
I found README.malloc in the CVS, but in the sources i downloaded, the file is missing. downloaded 0.10.14 a minute ago.
 
thanks
henning

-----Original Message-----
From: ext ronnie sahlberg [mailto:ronniesahlberg@xxxxxxxxx]
Sent: Tuesday, 03. January 2006 10:39
To: Ethereal development
Cc: Treu Henning (EXT-Nomiko/Dusseldorf)
Subject: Re: [Ethereal-dev] free dynamic memory


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  <mailto:ext-henning.treu@xxxxxxxxx> > wrote: 

Hi list,  <mailto:ext-henning.treu@xxxxxxxxx> 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