mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user