mirror of
https://github.com/curl/curl.git
synced 2026-07-15 22:57:17 +03:00
James Bursa's fix to make this deal with malloc(0) as OK to free()
This commit is contained in:
parent
3394c01826
commit
686ba84128
1 changed files with 1 additions and 1 deletions
|
|
@ -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}) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue