From 11ed7e4310c356a7089ed9e90af056012bb4a4cb Mon Sep 17 00:00:00 2001 From: Alessandro Ferro Date: Sat, 15 Apr 2023 22:21:53 +0200 Subject: [PATCH] Memory leak --- dircomp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dircomp.c b/dircomp.c index 94b3b0c..3ef41a0 100644 --- a/dircomp.c +++ b/dircomp.c @@ -30,6 +30,8 @@ int main(int argc, char *argv[]) { printf("Directories are not equal\n"); } + free(arguments.directory1); + free(arguments.directory2); return 0; }