MegaGlest / megaglest-source

MegaGlest real-time strategy game engine (cross-platform, 3-d)
http://megaglest.org/
348 stars 89 forks source link

close opened file descriptors properly #130

Closed bryonglodencissp closed 7 years ago

bryonglodencissp commented 7 years ago

:bug: label: hacktoberfest

Greetings,

Calling fclose(f1); here will ensure the file descriptor is properly disposed of and we will not run out of resources for more files. Even if it's closed automatically by the system when exiting the process, we believe you should release f1 when done with it.

Signed-off-by: Bryon Gloden, CISSP® cissp@bryongloden.com