Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: [Wireshark-dev] Query regarding malloc and ep_alloc

From: prashanth joshi <prashanthsjoshi2000@xxxxxxxxx>
Date: Tue, 10 Oct 2006 06:16:06 -0700 (PDT)
Hi , can i use malloc to allocate memory in ethereal code ?
What i want to do is to allocate memory and then fill in the contents and then add it to the display tree.
If I use malloc, will not it cause problems like platform dependence and memory leaks?
I used ep_alloc( ) but i'm getting error " undefined reference to ep_alloc".
Also, can i use malloc for any general purpose data manipulation....?, say like allocating a structure sized memory using malloc and then copying n bytes of the tvbuff in to the allocated memory and then manipulate the data.
Regards,
Prashanth
 

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com