summaryrefslogtreecommitdiff
path: root/tests/memanalyze.pl
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-05-07 18:54:09 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-05-07 18:54:09 +0000
commit686ba8412879a816479b840a0c811cd2d77bccf9 (patch)
tree832038d209f439714ad6390824ca847aa8d3b58e /tests/memanalyze.pl
parent3394c01826aef99a645db398c1fb6bce4693bd35 (diff)
downloadcurl-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-xtests/memanalyze.pl2
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}) {