projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3394c01
)
James Bursa's fix to make this deal with malloc(0) as OK to free()
author
Daniel Stenberg
<daniel@haxx.se>
Fri, 7 May 2004 18:54:09 +0000
(18:54 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Fri, 7 May 2004 18:54:09 +0000
(18:54 +0000)
tests/memanalyze.pl
patch
|
blob
|
history
diff --git
a/tests/memanalyze.pl
b/tests/memanalyze.pl
index
743b716
..
169c0fe
100755
(executable)
--- 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}) {