Loading memanalyze.pl +9 −12 Original line number Diff line number Diff line Loading @@ -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) { Loading @@ -95,4 +91,5 @@ for(keys %sizeataddr) { print " allocated by ".$getmem{$addr}."\n"; } } } Loading
memanalyze.pl +9 −12 Original line number Diff line number Diff line Loading @@ -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) { Loading @@ -95,4 +91,5 @@ for(keys %sizeataddr) { print " allocated by ".$getmem{$addr}."\n"; } } }