From f09db993e775377fb504dd422d41d77785adafaa Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Wed, 11 May 2022 17:50:01 +0200 Subject: [PATCH] added all missing deallocations (hopefully) --- src/lib/misc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/misc.c b/src/lib/misc.c index b2d0157..79feb40 100644 --- a/src/lib/misc.c +++ b/src/lib/misc.c @@ -34,6 +34,7 @@ void checkVersion(inputFlags flags) //CLEANUP curl_easy_cleanup(curl); + free(curl); fclose(fileBuffer); while (access(VERSIONS_NAME, R_OK) != 0) @@ -86,6 +87,10 @@ void checkVersion(inputFlags flags) //WAIT FOR 5 SECONDS sleep(5); } + + //DEALLOCATION + free(parsedJson); + free(active); } void generateTextKeyChain(char key[], int *textKeyChain, int textKeyChainSize)