1
0
mirror of https://github.com/moparisthebest/curl synced 2025-03-07 20:59:41 -05:00

Gisle fixed the counting of calloc()s

This commit is contained in:
Daniel Stenberg 2004-04-29 14:33:19 +00:00
parent 8349dde0f1
commit e99287734b

View File

@ -7,6 +7,7 @@
# MEM sendf.c:232 free(f6520) # MEM sendf.c:232 free(f6520)
my $mallocs=0; my $mallocs=0;
my $callocs=0;
my $reallocs=0; my $reallocs=0;
my $strdups=0; my $strdups=0;
my $showlimit; my $showlimit;
@ -342,10 +343,10 @@ if($addrinfos) {
if($verbose) { if($verbose) {
print "Mallocs: $mallocs\n", print "Mallocs: $mallocs\n",
"Reallocs: $reallocs\n", "Reallocs: $reallocs\n",
"Callocs: $callcs\n", "Callocs: $callocs\n",
"Strdups: $strdups\n", "Strdups: $strdups\n",
"Frees: $frees\n", "Frees: $frees\n",
"Allocations: ".($mallocs + $reallocs + $strdups)."\n"; "Allocations: ".($mallocs + $callocs + $reallocs + $strdups)."\n";
print "Maximum allocated: $maxmem\n"; print "Maximum allocated: $maxmem\n";
} }