Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ulowell!m2c!wpi!lfoard From: lfoard@wpi.wpi.edu (Lawrence C Foard) Newsgroups: comp.lang.c Subject: Re: What if I don't free() all my dynamically allocated memory? Keywords: On a Unix system, that is. Message-ID: <1823@wpi.wpi.edu> Date: 10 Apr 89 18:08:21 GMT References: <2580@ssc-vax.UUCP> <8395@xanth.cs.odu.edu> <13185@watdragon.waterloo.edu> Reply-To: lfoard@wpi.wpi.edu (Lawrence C Foard) Organization: Worcester Polytechnic Institute, Worcester, MA. USA Lines: 14 Does any one know if dos/turbo C is able to put small blocks of memory back together again? I have a program that allocates memory in 512 bytes chunks which also has to call other programs. The memory can all be farfreed before a call to another program, will turbo C and dos make the freed memory available to the spawned process. The two problems I can see is 1) Turbo C may not return the freed memory to dos 2) Dos may not put the 512 byte chunks back together to make big (64K) chunks. Does any one know is either of these problems actually happen and if so can they be fixed (or otherwise gotten around). -- Disclaimer: My school does not share my views about FORTRAN. FORTRAN does not share my views about my school.