Commit 7db43ae0 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

says nothing if no errors were found

parent ae58d844
Loading
Loading
Loading
Loading
+9 −12
Original line number Diff line number Diff line
@@ -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";
        }
    }
}