Skip to content
Snippets Groups Projects
Commit 686ba841 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

James Bursa's fix to make this deal with malloc(0) as OK to free()

parent 3394c018
No related branches found
No related tags found
No related merge requests found
......@@ -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}) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment