mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
says nothing if no errors were found
This commit is contained in:
parent
ae58d84429
commit
7db43ae0ed
@ -80,19 +80,16 @@ while(<STDIN>) {
|
||||
}
|
||||
}
|
||||
|
||||
if(0 == $totalmem) {
|
||||
print "No leak found\n";
|
||||
exit;
|
||||
}
|
||||
if($totalmem) {
|
||||
print "Leak detected: memory still allocated: $totalmem bytes\n";
|
||||
|
||||
print "Leak detected: memory still allocated: $totalmem bytes\n";
|
||||
|
||||
for(keys %sizeataddr) {
|
||||
$addr = $_;
|
||||
$size = $sizeataddr{$addr};
|
||||
if($size) {
|
||||
print "At $addr, there's $size bytes.\n";
|
||||
print " allocated by ".$getmem{$addr}."\n";
|
||||
for(keys %sizeataddr) {
|
||||
$addr = $_;
|
||||
$size = $sizeataddr{$addr};
|
||||
if($size) {
|
||||
print "At $addr, there's $size bytes.\n";
|
||||
print " allocated by ".$getmem{$addr}."\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user