Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uwm.edu!bionet!agate!usenet.ins.cwru.edu!ysub!psuvm!sml108 From: SML108@psuvm.psu.edu (Scott Le Grand) Newsgroups: comp.sys.sgi Subject: malloc and free problems Message-ID: <91111.180106SML108@psuvm.psu.edu> Date: 21 Apr 91 22:01:06 GMT Organization: Penn State University Lines: 8 Hi, I wish to allocate 10 times as much memory as I really need to initialize some data. I use malloc to do this, and then use free to dispose of the 90% I am not going to use during execution (I am sampling the top 10% of a randomly generated distribution). When I use free on it, I find I am still using the huge amount of memory I started with, even after supposedly disposing of it. What is going on here? Scott