curl-library
memanalyze.pl patch
From: Gisle Vanem <gvanem_at_broadpark.no>
Date: Thu, 29 Apr 2004 16:30:32 +0200
Date: Thu, 29 Apr 2004 16:30:32 +0200
Missing reporting of calloc() calls.
--- CVS-latest/tests/memanalyze.pl Thu Apr 22 15:09:00 2004
+++ tests/memanalyze.pl Thu Apr 29 16:28:31 2004
@@ -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($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";
}
--gv
Received on 2004-04-29