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 <[EMAIL PROTECTED]> 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@wireshark.org > http://www.wireshark.org/mailman/listinfo/wireshark-dev > _______________________________________________ Wireshark-dev mailing list Wireshark-dev@wireshark.org http://www.wireshark.org/mailman/listinfo/wireshark-dev