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] Use of ep/se mem

From: "ronnie sahlberg" <ronniesahlberg@xxxxxxxxx>
Date: Fri, 19 Jan 2007 21:15:18 +0000
you probably want ep_alloc() here so that the storage is released once
the packet dissection completes (and thus the "tree" is deleted)



On 1/19/07, Graham Bloice <graham.bloice@xxxxxxxxxxxxx> wrote:
I'm updating an older dissector (dnp3) and it uses a g_malloc() to build
a tmp buffer of data extracted in chunks from the tvb.  A new tvb is
then created from this tmp buffer.  After the new tvb (created by a call
to tvb_new_real_data()) is created the tmp buffer isn't used.

Which emem version should I be replacing the g_malloc() with?

--
Graham
_______________________________________________
Wireshark-dev mailing list
Wireshark-dev@xxxxxxxxxxxxx
http://www.wireshark.org/mailman/listinfo/wireshark-dev