From 9766df5f5b3c68e15769d624cfb8328eca9c303d Mon Sep 17 00:00:00 2001 From: Robert MacGregor Date: Sat, 12 Mar 2016 17:31:51 -0500 Subject: [PATCH] Forgot to close dangling file handles --- Sources/Ecc/Main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Sources/Ecc/Main.cpp b/Sources/Ecc/Main.cpp index 71178aa..8168f6e 100644 --- a/Sources/Ecc/Main.cpp +++ b/Sources/Ecc/Main.cpp @@ -391,9 +391,15 @@ int main(int argc, char *argv[]) switch (status) { case ESStatus::Empty: + { + fclose(_fInput); return EXIT_SUCCESS; + } case ESStatus::Error: + { + fclose(_fInput); return EXIT_FAILURE; + } } //printf("%s\n", argv[1]);