mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-22 10:20:26 +01:00
Forgot to close dangling file handles
This commit is contained in:
parent
d69cb55c21
commit
9766df5f5b
|
@ -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]);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user