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.
: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 releasef1
when done with it.Signed-off-by: Bryon Gloden, CISSP® cissp@bryongloden.com