From 442c7f31750e0a5446936707ec1f4c2500badf19 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sun, 8 May 2022 19:56:16 +0200 Subject: [PATCH] implemented deallocateOutput --- src/app/main.c | 4 ++++ src/lib/test/main.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/app/main.c b/src/app/main.c index 09077c3..c5a4232 100644 --- a/src/app/main.c +++ b/src/app/main.c @@ -3,6 +3,7 @@ #include #include +#include int main(void) { @@ -27,5 +28,8 @@ int main(void) , TEXT_TO_ENCRYPT, encryptedText.outputText ); + //DEALLOCATION + deallocateOutput(encryptedText); + return 0; } \ No newline at end of file diff --git a/src/lib/test/main.c b/src/lib/test/main.c index 13e3928..e7bfd62 100644 --- a/src/lib/test/main.c +++ b/src/lib/test/main.c @@ -5,6 +5,7 @@ #include #include #include +#include int main(void) { @@ -27,5 +28,8 @@ int main(void) exit(1); } + //DEALLOCATION + deallocateOutput(encrypted); + return 0; }