I read somewhere that it is disastrous to use free to get rid of an object not created by calling malloc, is this true? why?
free
malloc
Strictly speaking, this is not true. calloc() and realloc() are valid object sources for free(), too. ;)