Why exactly should I not call free() on variables not allocated by malloc()?

Posted by ultrajohn on Stack Overflow See other posts from Stack Overflow or by ultrajohn
Published on 2010-04-22T05:12:59Z Indexed on 2010/04/22 5:43 UTC
Read the original article Hit count: 215

Filed under:
|
|
|
|

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?

© Stack Overflow or respective owner

Related posts about c

    Related posts about malloc