says nothing if no errors were found
This commit is contained in:
parent
ae58d84429
commit
7db43ae0ed
@ -80,11 +80,7 @@ while(<STDIN>) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(0 == $totalmem) {
|
if($totalmem) {
|
||||||
print "No leak found\n";
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
print "Leak detected: memory still allocated: $totalmem bytes\n";
|
print "Leak detected: memory still allocated: $totalmem bytes\n";
|
||||||
|
|
||||||
for(keys %sizeataddr) {
|
for(keys %sizeataddr) {
|
||||||
@ -95,4 +91,5 @@ for(keys %sizeataddr) {
|
|||||||
print " allocated by ".$getmem{$addr}."\n";
|
print " allocated by ".$getmem{$addr}."\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user