From e60c05a59f8b596956d0d8ac133eae42aea66eb8 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Wed, 11 May 2022 17:41:45 +0200 Subject: [PATCH] added missing textKeyChain deallocation --- src/lib/decrypter.c | 3 +++ src/lib/encrypter.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/lib/decrypter.c b/src/lib/decrypter.c index e2f8def..685f8be 100644 --- a/src/lib/decrypter.c +++ b/src/lib/decrypter.c @@ -89,5 +89,8 @@ outputFlags decryptText(char *text, char *key, inputFlags flags) key //USED KEY }; + //DEALLOCATION + free(textKeyChain); + return output; } diff --git a/src/lib/encrypter.c b/src/lib/encrypter.c index 7165e56..9a93395 100644 --- a/src/lib/encrypter.c +++ b/src/lib/encrypter.c @@ -102,5 +102,8 @@ outputFlags encryptText(char *text, char *keyNew, inputFlags flags) key //GENERATED/USED KEY }; + //DEALLOCATION + free(textKeyChain); + return output; }