From: Martin Str|mberg Subject: Re: problem with malloc and free Newsgroups: comp.os.msdos.djgpp References: <1039859734 DOT 968060 AT queeg DOT ludd DOT luth DOT se> User-Agent: tin/1.4.4-20000803 ("Vet for the Insane") (UNIX) (NetBSD/1.5_BETA (alpha)) Message-ID: <1039860221.993352@queeg.ludd.luth.se> Cache-Post-Path: queeg.ludd.luth.se!unknown AT speedy DOT ludd DOT luth DOT se X-Cache: nntpcache 2.4.0b5 (see http://www.nntpcache.org/) Date: 14 Dec 2002 10:03:42 GMT Lines: 15 NNTP-Posting-Host: queeg.ludd.luth.se X-Trace: 1039860222 news.luth.se 59766 130.240.16.109 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Lars O. Hansen wrote: :> If you free something twice, anything can happen. : it still crashes if I remove the free(cxphi) in freeall Are you sure you recompiled? Sorry to ask, but it doesn't crash for me. However you should add -Wall to the compiler switches and correct the errors (main missing #includes). Right, MartinS