From 07c787b22ef59ae4d5e45e3e0b855f1e464697ce Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Wed, 25 Jan 2023 14:16:12 +0100 Subject: [PATCH] implemented deallocateDecryptedOutput --- src/logger/lib/test/main.c | 2 +- src/logger/lib/utils.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/logger/lib/test/main.c b/src/logger/lib/test/main.c index bc03d76..5f50193 100644 --- a/src/logger/lib/test/main.c +++ b/src/logger/lib/test/main.c @@ -62,6 +62,6 @@ int main(void) //DEALLOCATION free(usedKey); deallocateLogger(logger); - deallocateDoublePointer(decrypted); + deallocateDecryptedOutput(decrypted); return exitCode; } \ No newline at end of file diff --git a/src/logger/lib/utils.c b/src/logger/lib/utils.c index 725bd9b..4f6ac2d 100644 --- a/src/logger/lib/utils.c +++ b/src/logger/lib/utils.c @@ -106,7 +106,7 @@ decryptedOutput decryptLogger(logFile logger) //TODO: Fix valgrind issues //DEALLOCATION free(rawContent); fclose(file); - deallocateDoublePointer(content); + deallocateDecryptedOutput((decryptedOutput) { content, lines }); //fuck the system lmao return (decryptedOutput) {