added all missing deallocations (hopefully)

This commit is contained in:
Václav Šmejkal 2022-05-11 17:50:01 +02:00
parent 69bc2caec6
commit f09db993e7

View File

@ -34,6 +34,7 @@ void checkVersion(inputFlags flags)
//CLEANUP //CLEANUP
curl_easy_cleanup(curl); curl_easy_cleanup(curl);
free(curl);
fclose(fileBuffer); fclose(fileBuffer);
while (access(VERSIONS_NAME, R_OK) != 0) while (access(VERSIONS_NAME, R_OK) != 0)
@ -86,6 +87,10 @@ void checkVersion(inputFlags flags)
//WAIT FOR 5 SECONDS //WAIT FOR 5 SECONDS
sleep(5); sleep(5);
} }
//DEALLOCATION
free(parsedJson);
free(active);
} }
void generateTextKeyChain(char key[], int *textKeyChain, int textKeyChainSize) void generateTextKeyChain(char key[], int *textKeyChain, int textKeyChainSize)