X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=tests%2Fmemanalyze.pl;h=54117f8ea1ba742f6c2722e2edebae594471875a;hb=7b6dca47a42828c0ae87eab0d8b68f97d1495b67;hp=701cf161cbb145c1fda12fba96ca7ba0ee52d06f;hpb=8a08705db260779441360e959b97b6c172f8acb0;p=platform%2Fupstream%2Fcurl.git diff --git a/tests/memanalyze.pl b/tests/memanalyze.pl index 701cf16..54117f8 100755 --- a/tests/memanalyze.pl +++ b/tests/memanalyze.pl @@ -108,12 +108,9 @@ while() { $linenum = $2; $function = $3; - if($function =~ /free\((\(nil\)|0x([0-9a-f]*))/) { - $addr = $2; - if($1 eq "(nil)") { - ; # do nothing when free(NULL) - } - elsif(!exists $sizeataddr{$addr}) { + if($function =~ /free\(0x([0-9a-f]*)/) { + $addr = $1; + if(!exists $sizeataddr{$addr}) { print "FREE ERROR: No memory allocated: $line\n"; } elsif(-1 == $sizeataddr{$addr}) {