From: danpop@cernapo.cern.ch (Dan Pop)
Subject: Re: Number of bytes returned by malloc (or passed to free)?
Date: Sun, 5 Mar 1995 16:12:31 GMT [thread overview]
Message-ID: <danpop.794419951@rscernix> (raw)
In-Reply-To: 3j9l81$lo8@netaxs.com
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
next prev parent reply other threads:[~1995-03-05 16:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-03-04 12:08 Number of bytes returned by malloc (or passed to free)? cek
1995-03-05 16:12 ` Dan Pop [this message]
1995-03-06 23:21 ` cek
1995-03-15 18:57 ` Eric Osborne
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox