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-15 11:03:10 PST Path: bga.com!news.sprintlink.net!cs.utexas.edu!math.ohio-state.edu!cis.ohio-state.edu!bounce-bounce From: edo@cis.ohio-state.edu (Eric Osborne) Newsgroups: comp.unix.osf.osf1 Subject: Re: Number of bytes returned by malloc (or passed to free)? Date: 15 Mar 1995 13:57:19 -0500 Organization: The Ohio State University, Department of Computer and Information Science Message-ID: <3k7dafINN6et@umble.cis.ohio-state.edu> References: <3j9l81$lo8@netaxs.com> <3jg5d5$9mo@netaxs.com> NNTP-Posting-Host: umble.cis.ohio-state.edu cdk@netaxs.com writes : >if (global_number_of_bytes_allocated - global_number_of_bytes_freed) > 0, >then the application has a memory leak. You might want to check out the "3rd degree" tool that is available on DEC OSF/1, I think as part of the developer extension - it's one of the ATOM tools. It does a marvelous job of finding memory leaks, and will also detect things like references to unitialized variables. I used it a lot a while back, and was able to detect a number of heap corruption problems in a large piece of networking code. Interestingly enough, these same problems were NOT detected by Purify from Pure Software. That's not an add, nor a slam on Purify - just my personal experience. Eric Osborne ***************************************************************************** Note - the opinions expressed above are my own, and do not necessarily represent those of the Ohio State University. For a small fee, they may become your opinions as well. *****************************************************************************