Forgot to close dangling file handles

This commit is contained in:
Robert MacGregor 2016-03-12 17:31:51 -05:00
parent d69cb55c21
commit 9766df5f5b

View File

@ -391,9 +391,15 @@ int main(int argc, char *argv[])
switch (status) switch (status)
{ {
case ESStatus::Empty: case ESStatus::Empty:
{
fclose(_fInput);
return EXIT_SUCCESS; return EXIT_SUCCESS;
}
case ESStatus::Error: case ESStatus::Error:
{
fclose(_fInput);
return EXIT_FAILURE; return EXIT_FAILURE;
}
} }
//printf("%s\n", argv[1]); //printf("%s\n", argv[1]);