From: "Lars O. Hansen" Newsgroups: comp.os.msdos.djgpp Subject: Re: problem with malloc and free Date: Sat, 14 Dec 2002 16:28:18 +0100 Organization: 1&1 Internet AG Lines: 17 Message-ID: References: <000001c2a37a$59f41060$186a10ac AT citechbd DOT com> NNTP-Posting-Host: p508383b2.dip0.t-ipconnect.de X-Trace: news.online.de 1039879698 1524 80.131.131.178 (14 Dec 2002 15:28:18 GMT) X-Complaints-To: abuse AT online DOT de NNTP-Posting-Date: 14 Dec 2002 15:28:18 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > The program tries to free cm and cxphi at least twice. First, in main(), > when freeall() is called directly. Second, at exit, because in > setupall(), it is specified that freeall() should be called when the > program exits. my oversight; there should be no freeall() in main; I added it "last second" befor posting, beacuse I had a "blackout" and wondered where my freeall was. Of course it's set by atexit. The program still crashes. Here's the new traceback: Call frame traceback EIPs: 0x00003825 _free+77 0x000018bb _freeall+99 0x0000353f _exit+31 0x0000171f _main+31 0x00003138 ___crt1_startup+176