Skip to content
Snippets Groups Projects
Commit e9928773 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Gisle fixed the counting of calloc()s

parent 8349dde0
No related branches found
No related tags found
No related merge requests found
......@@ -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";
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment