Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!lll-winken!uunet!ficc!peter From: peter@ficc.uu.net (Peter da Silva) Newsgroups: comp.lang.c Subject: Re: What if I don't free() all my dynamically allocated memory? Keywords: Not on a Unix system, that is. Message-ID: <4133@ficc.uu.net> Date: 10 May 89 13:13:06 GMT References: <2580@ssc-vax.UUCP> <386@nbires.nbi.com> <1384@dukeac.UUCP> <1370@ns.network.com> Organization: Xenix Support Lines: 14 The underlying operating system may not do it, but your C library's implementation of malloc() should include code that automatically cleans up memory when you exit(). I don't think this is in the standard, but it's sure a quality of implementation issue. As for operating systems that don't clean up when a program exits, there are operating systems, particularly message-passing ones, that do not have the notion of the owner of a block of memory. Memory is allocated and passed to other programs continually. -- Peter da Silva, Xenix Support, Ferranti International Controls Corporation. Business: uunet.uu.net!ficc!peter, peter@ficc.uu.net, +1 713 274 5180. Personal: ...!texbell!sugar!peter, peter@sugar.hackercorp.com.