home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / programm / 2030 < prev    next >
Encoding:
Text File  |  1992-07-21  |  1.3 KB  |  30 lines

  1. Newsgroups: comp.programming
  2. Path: sparky!uunet!munnari.oz.au!cs.mu.OZ.AU!munta.cs.mu.OZ.AU!fjh
  3. From: fjh@munta.cs.mu.OZ.AU (Fergus James HENDERSON)
  4. Subject: Re: Chasing memory leaks: tools, procedures?
  5. Message-ID: <9220400.530@mulga.cs.mu.OZ.AU>
  6. Sender: news@cs.mu.OZ.AU
  7. Organization: Computer Science, University of Melbourne, Australia
  8. References: <1992Jul6.093355.20442@lth.se>         <1992Jul18.203518.14496@murdoch.acc.Virginia.EDU>         <1992Jul19.160323.8820@organpipe.uug.arizona.edu> <NICKEL.92Jul19184631@desaster.cs.tu-berlin.de>
  9. Date: Tue, 21 Jul 1992 14:27:02 GMT
  10. Lines: 18
  11.  
  12. nickel@cs.tu-berlin.de (Juergen Nickelsen) writes:
  13.  
  14. >dave@cs.arizona.edu (Dave Schaumann) writes:
  15. >> must_alloc() is just a function that calls malloc and aborts if malloc
  16. >> returns NULL.
  17. >
  18. >To make this more useful, must_alloc() should also call some
  19. >cleanup-function. For some application it is a must to have control of
  20. >their termination, e.g. to remove temporary files, re-rename
  21. >temporarily renamed files etc.
  22.  
  23. Why not just use at_exit() to install an error handler if necessary?
  24.  
  25. --
  26. Fergus Henderson             fjh@munta.cs.mu.OZ.AU      
  27. This .signature VIRUS is a self-referential statement that is true - but 
  28. you will only be able to consistently believe it if you copy it to your own
  29. .signature file!
  30.