vcscanf: free buf before returning if not NULL

This condition indicates that the floating point parser exited early.
This commit is contained in:
Matheus Afonso Martins Moreira 2023-11-02 06:16:20 -03:00
parent c16171349c
commit 0e7c6aa5e1

View file

@ -393,5 +393,6 @@ Done:
if (items == -1) free(entry->ptr);
free(entry);
}
if (buf) free(buf);
return items;
}