Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug fix: close file after reading #540

Merged
merged 1 commit into from
Jul 17, 2023
Merged

Conversation

Alfusainey
Copy link
Contributor

Summary

When sending an email, multiple files are opened and read but never closed. While this will be GCed on exit, it is always a good idea to close open files.

Additional Information

The code of the WOSendMail function is similar to the code in this answer and the bug is fixed in the second version of the answer.

Signed-off-by: Alfusainey Jallow <alf.jallow@gmail.com>
@VirtuBox
Copy link
Member

Thanks for your pull request and your contribution @Alfusainey

@VirtuBox VirtuBox merged commit b3a47f4 into WordOps:master Jul 17, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants