The GNU manual page for malloc
defines that when free()
called twice with the same pointer (that was previously allocated by malloc()
) "undefined behaviour occurs".
What kind of behaviour is that?
Where can I find more Information about this kind of error?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…