On Tuesday 01 July 2008 09:24, Sajish V wrote: > 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? How gcc can know that free() is not supposed to be used like that? -- vda