On Sat, 14 Nov 1998, James wrote:
> or you can have a counter that is incremented whenever malloc() (or whatever)
> is called and decremented whenever free() (or similar) is called. Then at the
> end of the program write out the value. If it's != 0 then you have a leak.
Decrefing with a bug?
consider the following, buggy, code:
a=malloc(10);
b=malloc(10);
free(a);
free(a);
--
Name ::= "Moshe Zadka", [For explanation of syntax, see]
page::="http://www.ma.huji.ac.il/~moshez"| [http:/www.w3.org/TR/xml-980210]
"http://www.geocities/TheTropics/Island/2932"
E-Mail::= "[EMAIL PROTECTED]"|"[EMAIL PROTECTED]"|"[EMAIL PROTECTED]"