Ethereal-dev: Re: [Ethereal-dev] new dissector - packet-baby.[ch]

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

From: Guy Harris <gharris@xxxxxxxxx>
Date: Mon, 20 Aug 2001 02:18:17 -0700
On Wed, Aug 15, 2001 at 09:35:53AM -0500, Frank Singleton wrote:
> I have however enclosed a patch from Bernd Becker
> to fix the problem of "header->exception_id" was
> incorrectly being popultaed inside an if(tree)
> structure.

Checked in.

I also checked in a change to free up the exception ID string if one was
allocated; it needs some additional work - you need to catch exceptions,
so that if a dissector throws an exception, we still free the string,
and then the exception has to be rethrown.

Either that or we need to add a cleanup callback to free the string -
and any *other* dynamically-allocated data....