Mustafa4LP <mustafa.hussain@xxxxxxxxxxx> writes: > Actually, I was amused by the following message issued by glibc on freeing > the memory twice. > > *** glibc detected *** double free or corruption (fasttop): 0x081e9008 *** > > I was thinking that the information that the memory is already freed is > already there. > can that information be directly used to know that the memory is already > freed ? That message from glibc really means "the heap is messed up." The message mentions "double free" because that is a fairly common way to mess up the heap. However, all glibc really knows for sure is "corruption." Ian