From: hno <> Date: Tue, 10 Apr 2001 23:00:50 +0000 (+0000) Subject: From Andreas Kroonmaa: X-Git-Tag: SQUID_3_0_PRE1~1549 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97e9fcb6711e9ec2435453253b328618b10a2241;p=thirdparty%2Fsquid.git From Andreas Kroonmaa: bug in util.c caused xmalloc_stats to count xcalloc stats wrong --- diff --git a/lib/util.c b/lib/util.c index cb01a99a35..7f2633c3b3 100644 --- a/lib/util.c +++ b/lib/util.c @@ -1,6 +1,6 @@ /* - * $Id: util.c,v 1.77 2001/01/12 00:37:13 wessels Exp $ + * $Id: util.c,v 1.78 2001/04/10 17:00:50 hno Exp $ * * DEBUG: * AUTHOR: Harvest Derived @@ -574,7 +574,7 @@ xcalloc(int n, size_t sz) check_malloc(p, sz * n); #endif #if XMALLOC_STATISTICS - malloc_stat(sz); + malloc_stat(sz * n); #endif #if XMALLOC_TRACE xmalloc_show_trace(p, 1);