projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8349dde
)
Gisle fixed the counting of calloc()s
author
Daniel Stenberg
<daniel@haxx.se>
Thu, 29 Apr 2004 14:33:19 +0000
(14:33 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Thu, 29 Apr 2004 14:33:19 +0000
(14:33 +0000)
tests/memanalyze.pl
patch
|
blob
|
history
diff --git
a/tests/memanalyze.pl
b/tests/memanalyze.pl
index
eaa8b5f
..
743b716
100755
(executable)
--- 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: $call
o
cs\n",
"Strdups: $strdups\n",
"Frees: $frees\n",
- "Allocations: ".($mallocs + $reallocs + $strdups)."\n";
+ "Allocations: ".($mallocs + $
callocs + $
reallocs + $strdups)."\n";
print "Maximum allocated: $maxmem\n";
}