From 76b8230cb26fc0e7c59492753200b1fa1b788604 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Fri, 11 Mar 2022 18:28:09 +0100 Subject: [PATCH] added missing deallocation --- src/test/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/main.c b/src/test/main.c index 8755b5b..cfe3ee6 100644 --- a/src/test/main.c +++ b/src/test/main.c @@ -1,4 +1,5 @@ #include +#include #include "../../include/encrypter.h" #include "../../include/decrypter.h" @@ -11,5 +12,7 @@ main(int args, char *argv[]) text = decryptText(text, "dsadhagsdhuhasvbdzgavdgasvgzduasvgzdavdhbashudbuas"); printf("%s\n", text); + + free(text); return 0; } \ No newline at end of file