mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-09 19:30:29 +00:00
vcscanf: free buf before returning if not NULL
This condition indicates that the floating point parser exited early.
This commit is contained in:
parent
c16171349c
commit
0e7c6aa5e1
1 changed files with 1 additions and 0 deletions
|
@ -393,5 +393,6 @@ Done:
|
|||
if (items == -1) free(entry->ptr);
|
||||
free(entry);
|
||||
}
|
||||
if (buf) free(buf);
|
||||
return items;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue