home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 1902 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

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