From b4d1be73f92493a42ebe1d85b042f86e02114904 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sat, 10 Dec 2022 15:01:14 +0100 Subject: [PATCH] fixed writeLog memory leak --- src/logger/lib/logger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logger/lib/logger.c b/src/logger/lib/logger.c index 130e44d..1023f0d 100644 --- a/src/logger/lib/logger.c +++ b/src/logger/lib/logger.c @@ -125,7 +125,7 @@ void writeLog(int loggerFile, char *logMessage) message = strdup(encrypted.outputText); //COPY //DEALLOCATION - free(encrypted.usedKey); + deallocateOutput(encrypted); } else //FUCK ENCRYPTION, LET'S DO IT; WHY WOULD WE EVEN USE WHY2-CORE? HUH? { message = strdup(logMessage); //COPY