delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/12/14/10:30:08.1

From: "Lars O. Hansen" <lars DOT o DOT hansen AT gmx DOT de>
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: <atfimi$1fk$1@news.online.de>
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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019