Subject: Re: is free() broken or am I broken :)
To: Hisashi T Fujinaka <htodd@twofifty.com>
From: None <itojun@iijlab.net>
List: current-users
Date: 08/15/2002 03:03:28
>This only just showed up, and I just recompiled world yesterday, so I
>don't know if it's me or gcc.
>I've got a function that passes back an array, that I've malloc'ed within
>the function using:
>double * returnArray = (double *)malloc((size_t)(3 * sizeof(double)));
>The rest of the code looks sort of like:
>double * returnArray = transform(initialArray);

	so you are overwriting returnArray?  no wonder original region
	allocated is not freed.

itojun