Author: Sajish V Date: To: Denys Vlasenko, gcc Subject: Re: free (static_array)
Thanks for the reply, Denys.
My question was, why doesn't gcc catch it during compilation? It is clear that we are trying to free a variable from stack. Shouldn't gcc flag an error for this during compilation?
Regards,
Sajish.
----- Original Message ----
From: Denys Vlasenko <vda.linux@???>
To: gcc@???
Cc: Sajish V <emailsaju@???>
Sent: Tuesday, July 1, 2008 2:44:06 PM
Subject: Re: free (static_array)
On Tuesday 01 July 2008 08:38, Sajish V wrote: > Hi All,
> Can you please let me know why GCC does not crib when we try to free a static array?
> main ()
> {
> char array[100];
> free (array);
> }
> The above code compiles without any hitch.
> Thanks,
> Sajish.