aboutsummaryrefslogtreecommitdiff
path: root/tests/memanalyze.pl
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-04-29 14:33:19 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-04-29 14:33:19 +0000
commite99287734ba96d8c37a94d079b1b0779c29a8926 (patch)
treedc32fc0bf9f979d6a1b7c4184b8f60fb8c6cab2c /tests/memanalyze.pl
parent8349dde0f19f32965a942e78a99e27446621d3c4 (diff)
Gisle fixed the counting of calloc()s
Diffstat (limited to 'tests/memanalyze.pl')
-rwxr-xr-xtests/memanalyze.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/memanalyze.pl b/tests/memanalyze.pl
index eaa8b5fe9..743b71629 100755
--- a/tests/memanalyze.pl
+++ b/tests/memanalyze.pl
@@ -7,6 +7,7 @@
# MEM sendf.c:232 free(f6520)
my $mallocs=0;
+my $callocs=0;
my $reallocs=0;
my $strdups=0;
my $showlimit;
@@ -342,10 +343,10 @@ if($addrinfos) {
if($verbose) {
print "Mallocs: $mallocs\n",
"Reallocs: $reallocs\n",
- "Callocs: $callcs\n",
+ "Callocs: $callocs\n",
"Strdups: $strdups\n",
"Frees: $frees\n",
- "Allocations: ".($mallocs + $reallocs + $strdups)."\n";
+ "Allocations: ".($mallocs + $callocs + $reallocs + $strdups)."\n";
print "Maximum allocated: $maxmem\n";
}