Fix memory leak in ffParseProfFileValues, if more than 4 queries are passed (unsetValues is on the heap) and the file

is not found.
This commit is contained in:
Péter Bohner (xzvf)
2022-07-07 14:35:59 +02:00
parent f9e17f44b1
commit 1863d8377a
+4
View File
@@ -109,7 +109,11 @@ bool ffParsePropFileValues(const char* filename, uint32_t numQueries, FFpropquer
FILE* file = fopen(filename, "r");
if(file == NULL)
{
if(unsetValues != valueStorage)
free(unsetValues);
return false;
}
if(allSet)
{