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

close xtables lock on errors before returning #63

Merged
merged 1 commit into from
Jul 24, 2019

Conversation

yannh
Copy link
Contributor

@yannh yannh commented Jul 14, 2019

In relation to: #61 if the lock file is successfully opened, but there was an error acquiring a lock, runWithOutput exits without closing the file. This patch tries to close the file before returning.

@squeed
Copy link
Collaborator

squeed commented Jul 15, 2019

Good catch, thanks! Are there any other places we can leak this fd?

@yannh
Copy link
Contributor Author

yannh commented Jul 15, 2019

Hi @squeed , thanks! I think so, see #64 !

@squeed squeed merged commit 969b135 into coreos:master Jul 24, 2019
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.

2 participants