Ethereal-dev: Re: [Ethereal-dev] Dynamic arrays in proto_register_field_array and proto_regist

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

From: Stefano Pettini <spettini@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 06 Jan 2005 22:04:54 +0100
Guy Harris wrote:

There's currently no mechanism in Ethereal for that; note that, in all the platforms on which we support Ethereal, when a process exits all its per-process address space is released. (Items in the address space aren't *individually* freed - the entire per-process address space is released.)

I imagine it's not a problem if I allocate those arrays in proto_register_xxx but I forget to free them...

Even fields names and abbreviations should be dynamically generated at startup. In this case I'll g_malloc them together with the arrays :-)

Stefano