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

Fix file handle leak. #421

Merged
merged 1 commit into from
Feb 3, 2021
Merged

Conversation

Quipyowert2
Copy link
Contributor

@Quipyowert2 Quipyowert2 commented Feb 3, 2021

When the maximum read depth is reached, push_read_file() fails and
run_command_file() returns without closing the file.

  • What does this PR do?
    Fixes a "resource leak: f" detected by Codacy and Cppcheck.

  • Screenshots (if applicable)

  • Issue number(s)
    Code Cleanup: Codacy issues list #107
    If this PR addresses any issues, please ensure the appropriate commit
    message(s) contains:

Fixes #XXX

at the end of your commit message, where XXX should be replaced with the
relevant issue number.

If there is more than one issue fixed then use:

Fixes #XXX, fixes #YYY, fixes #ZZZ

When the maximum read depth is reached, push_read_file() fails and
run_command_file() returns without closing the file.
@ThomasAdam ThomasAdam added the type:bug Something's broken! label Feb 3, 2021
@ThomasAdam ThomasAdam added this to the 1.0.3 milestone Feb 3, 2021
@ThomasAdam ThomasAdam merged commit 4ca3277 into fvwmorg:master Feb 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something's broken!
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants