home *** CD-ROM | disk | FTP | other *** search
- Path: comma.rhein.de!serpens!not-for-mail
- From: mlelstv@serpens.rhein.de (Michael van Elst)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: More linked list nonsense
- Date: 24 Jan 1996 20:29:11 +0100
- Organization: dis-
- Message-ID: <4e61a7$9ip@serpens.rhein.de>
- References: <4e5nih$iib@news.sdd.hp.com>
- NNTP-Posting-Host: serpens.rhein.de
-
- Jeff Grimmett <jgrimm@sdd.hp.com> writes:
-
- >It just occurred to me last night, as I pored over steaming code, that
- >the function Remove() (used to remove nodes from linked lists) might
- >POSSIBLY not be freeing the memory allocated to the node it is removing.
-
- Possibly ? It never does. It just unlinks the node from the list.
-
- >Does anyone have some insight on this?
-
- The system documentation has.
-
- >It's also hard to imagine that C= gave us this function without some way
- >to clean up behind it, but I'm SUCH a Doubting Thomas at times... :-)
-
- It doesn't free anything. You still have the pointer to the node that
- _might_ need cleanup. Where is the problem ?
-
-
- --
- Michael van Elst
-
- Internet: mlelstv@serpens.rhein.de
- "A potential Snark may lurk in every tree."
-