Thanks for your replies !!! 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 ? I am sorry, I am a naive in this field and my questions may sound ridiculous to you. Best Regards, Mustafa. -- View this message in context: http://www.nabble.com/Is-it-possible-to-detect-the-memory-status---tp21681631p21699221.html Sent from the gcc - Help mailing list archive at Nabble.com.