From 0a0eb94a836cb0db6be050b959aeb2cd700e3fe8 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Wed, 25 Jan 2023 12:11:57 +0100 Subject: [PATCH] implemented deallocateDoublePointer in utils' decryptLogger --- src/logger/lib/utils.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/logger/lib/utils.c b/src/logger/lib/utils.c index 587120c..4aa5728 100644 --- a/src/logger/lib/utils.c +++ b/src/logger/lib/utils.c @@ -110,14 +110,9 @@ char **decryptLogger(logFile logger) //TODO: Fix valgrind issues } //DEALLOCATION - for (int i = 0; i < lines; i++) //DEALLOCATE EACH ELEMENT IN content - { - free(content[i]); - } - - free(content); free(rawContent); fclose(file); + deallocateDoublePointer(content); return contentDecrypted; } \ No newline at end of file