Ethereal-dev: Re: [Ethereal-dev] VJ compressed PPP packets ??

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxx>
Date: Tue, 27 Feb 2001 12:51:57 -0800 (PST)
> > 8) The packet_unselect_list_cb will destroy the secondary byte views.
> >    Still working on this...
> 
> The notebook tabs would be destroyed; the tvbuffs would be freed by
> "epan_dissect_free()", which is called by "unselect_packet()".

...although, when you allocate a tvbuff for uncompressed/decrypted data,
if the actual byte array containing the data was mallocated, you'd want
to call "tvb_set_free_cb()" on the tvbuff to which you attach that data,
so that, when the tvbuff is freed, the callback routine will be called,
with a pointer to the real data, and can free the raw data.