Ethereal-dev: Re: [ethereal-dev] Incorrect use of malloc

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

From: Guy Harris <gharris@xxxxxxxxxxxx>
Date: Fri, 7 Jul 2000 02:32:39 -0700
On Fri, Jul 07, 2000 at 09:11:22AM +0100, Graham Bloice wrote:
> The attached patch corrects a debug assertion on Win32.

Checked in.  It's not necessarily limited to Win32; it may blow up if
GLib is built with either malloc debugging or malloc profiling enabled.

> I did note that packet_bgp is unique in using malloc() instead of
> g_malloc().  Except.c also uses malloc().  Should these be converted to
> g_malloc() ?

I don't know of any good reason not to - "except.c" probably didn't use
it because Gilbert just brought in Kaz Kyhelku's file and because Kaz
just used "malloc()" so his exception package wouldn't depend on GLib.