says nothing if no errors were found

This commit is contained in:
Daniel Stenberg 2000-11-21 15:50:17 +00:00
parent ae58d84429
commit 7db43ae0ed
1 changed files with 9 additions and 12 deletions

View File

@ -80,11 +80,7 @@ while(<STDIN>) {
}
}
if(0 == $totalmem) {
print "No leak found\n";
exit;
}
if($totalmem) {
print "Leak detected: memory still allocated: $totalmem bytes\n";
for(keys %sizeataddr) {
@ -95,4 +91,5 @@ for(keys %sizeataddr) {
print " allocated by ".$getmem{$addr}."\n";
}
}
}