]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
From Andreas Kroonmaa:
authorhno <>
Tue, 10 Apr 2001 23:00:50 +0000 (23:00 +0000)
committerhno <>
Tue, 10 Apr 2001 23:00:50 +0000 (23:00 +0000)
bug in util.c caused xmalloc_stats to count xcalloc stats wrong

lib/util.c

index cb01a99a350ddf1d3f0ba73becca46de946c1e90..7f2633c3b3ab58177fe2da36f258f2c94307404c 100644 (file)
@@ -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);