home *** CD-ROM | disk | FTP | other *** search
- Path: student.uni-tuebingen.de!not-for-mail
- From: "Reinhard Katzmann" <Suamor@student.uni-tuebingen.de>
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Must I free my linked lists? (GCC)
- Date: Mon, 29 Jan 1996 11:47:29 -0500
- Organization: InterNetNews at ZDV Uni-Tuebingen
- Distribution: world
- Message-ID: <69071070%suamor@student.uni-tuebingen.de>
- References: <4dudic$aif@vixen.cso.uiuc.edu> <4e2mrt$bc6@iss1.neckar-alb.de> <volker.0eqv@vb.franken.de> <4e835q$rej@tuegate.tue.nl> <volker.0et1@vb.franken.de>
- Reply-To: "suamor" <suamor@student.uni-tuebingen.de>
- NNTP-Posting-Host: gw192.informatik.uni-tuebingen.de
- X-NewsReader: IntuiNews 1.3a (7.9.95)
-
- Volker Barthelmann schrieb in comp.sys.amiga.programmer ueber "Re: Must I
- free my linked lists? (GCC)":
- > Marcel van Kervinck (buex95a@asterix.urc.tue.nl) wrote:
- > : Volker Barthelmann (volker@vb.franken.de) wrote:
- > :
- > : : Probably all Amiga C libraries have a malloc() that frees all memory
- > : : after program termination, but no C compiler is required to do it.
- > :
- > : Wrong. They _are_ required to free the memory allocated by
- > : malloc and it's brothers. K&R II states so.
-
- Wrong. It stated malloc that the memory _can_ be freed using free().
- It says nothing wether it is needed or not. It also tells nothing
- that this could be Compiler dependant so you better don't rely on it.
-
- > I couldn't find this in K&R. Please quote what it says.
- >
- > If K&R really says this, it's an error in K&R AFAIK.
-
- The german Version of K&R 2nd ed. has malloc() in the Index.
-
- - Reinhard Katzmann
-
- ---
- E-Mail: suamor@student.uni-tuebingen.de
-
- One day I hope to finish my RPS Pertergrin
- Concept for Pertergin (yet in german) avalaible on Request
- Current Amiga-Project: GuideTool (GUI) V1.1BETA
-
-