From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,6e34f446fe88d4e2 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1995-03-05 23:05:09 PST Newsgroups: comp.unix.osf.osf1 Path: bga.com!news.sprintlink.net!EU.net!CERN.ch!rscernix!danpop From: danpop@cernapo.cern.ch (Dan Pop) Subject: Re: Number of bytes returned by malloc (or passed to free)? X-Nntp-Posting-Host: ues5.cern.ch Message-ID: Sender: news@news.cern.ch (USENET News System) Organization: CERN European Lab for Particle Physics X-Newsreader: NN version 6.5.0 #9 (NOV) References: <3j9l81$lo8@netaxs.com> Date: Sun, 5 Mar 1995 16:12:31 GMT In <3j9l81$lo8@netaxs.com> cek@netaxs.com () writes: >Does anyone know how to determine for OSF/1 on an alpha 3000 how many >bytes are actually allocated by malloc? I know this type of code is >non-portable and should not be relied upon but I only use it for >testing. I use it as a simple check for memory leakage by checking >the difference between the total bytes allocated by malloc and the >total bytes released by free. I am using OSF/1 V1.3 but will soon be >upgrading to OSF/1 V3.2 If free doesn't release all the bytes allocated by malloc, then it's severely broken. > >If anyone is interested, here is the SUN Sparc (4.1.3) version of what >I need: > Your code doesn't show how to check that free releases to the heap all the bytes allocated by malloc. Dan -- Dan Pop CERN, CN Division Email: danpop@cernapo.cern.ch Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland