From 28f5b6db95593e2b096fd19708da8cd8c4e75e04 Mon Sep 17 00:00:00 2001 From: Alessandro Ferro Date: Sat, 29 Apr 2023 15:41:09 +0200 Subject: [PATCH] Memory leak --- dircomp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dircomp.c b/dircomp.c index 3de0f51..728c7de 100644 --- a/dircomp.c +++ b/dircomp.c @@ -204,6 +204,7 @@ bool analyze_directories(char* directory_to_analyze_1, char* directory_to_analyz free(directory_to_analyze_1); free(directory_to_analyze_2); closedir(directory1); + closedir(directory2); return false; } }