From: "A. Sinan Unur" Newsgroups: comp.os.msdos.djgpp Subject: Re: malloc() bug? Date: Wed, 03 Dec 1997 08:46:33 -0500 Organization: Cornell University (http://www.cornell.edu/) Lines: 17 Sender: asu1 AT cornell DOT edu (Verified) Message-ID: <348562B9.3790C786@cornell.edu> References: <97Nov27.183707gmt+0100 DOT 17029 AT internet01 DOT amc DOT de> <34844052 DOT 6481925 AT news DOT flash DOT net> <348450A7 DOT 7D2C5F5C AT cornell DOT edu> <662rg3$siq$1 AT news DOT ox DOT ac DOT uk> NNTP-Posting-Host: cu-dialup-0006.cit.cornell.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk George Foot wrote: > > (http://users.ox.ac.uk/~mert0407/downloads/findleak.zip). It's more > useful IMHO if you do something like this: > > #define malloc(x) my_debug_malloc(x,__FILE__,__LINE__) > etc i had left it as an exercise to the reader ... ;-) -- ---------------------------------------------------------------------- A. Sinan Unur Department of Policy Analysis and Management, College of Human Ecology, Cornell University, Ithaca, NY 14853, USA mailto:sinan DOT unur AT cornell DOT edu http://www.people.cornell.edu/pages/asu1/