diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-05-07 18:54:09 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-05-07 18:54:09 +0000 |
commit | 686ba8412879a816479b840a0c811cd2d77bccf9 (patch) | |
tree | 832038d209f439714ad6390824ca847aa8d3b58e /tests/memanalyze.pl | |
parent | 3394c01826aef99a645db398c1fb6bce4693bd35 (diff) | |
download | curl-686ba8412879a816479b840a0c811cd2d77bccf9.tar.gz |
James Bursa's fix to make this deal with malloc(0) as OK to free()
Diffstat (limited to 'tests/memanalyze.pl')
-rwxr-xr-x | tests/memanalyze.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/memanalyze.pl b/tests/memanalyze.pl index 743b71629..169c0fe2a 100755 --- a/tests/memanalyze.pl +++ b/tests/memanalyze.pl @@ -88,7 +88,7 @@ while(<FILE>) { if($function =~ /free\(0x([0-9a-f]*)/) { $addr = $1; - if($sizeataddr{$addr} == 0) { + if(!exists $sizeataddr{$addr}) { print "FREE ERROR: No memory allocated: $line\n"; } elsif(-1 == $sizeataddr{$addr}) { |