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

Wireshark-dev: Re: [Wireshark-dev] se_alloc & ep_alloc limit at 5 MB

From: Stephen Fisher <steve@xxxxxxxxxxxxxxxxxx>
Date: Tue, 26 May 2009 11:26:10 -0600
On Mon, May 25, 2009 at 11:38:37PM +0200, David Aggeler wrote:

> What's the suggested alternative to se_alloc()/ep_alloc()? I need more 
> than 5 MB.

Do you need the memory to be automatically released by Wireshark?  If 
not, use g_malloc(), which is GLib's version of malloc.  Note that 
g_malloc will cause Wireshark to terminate if there is not enough memory 
available (so it won't return NULL).  Use g_free() to free it.  You CAN 
pass g_free() a NULL pointer - it will just ignore it.


Steve