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]);