-
Notifications
You must be signed in to change notification settings - Fork 71
Coverity Fix: Close opened mmd libraries #290
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
Conversation
Seems like the mmd library is accessed globally, need another way to fix this |
@zibaiwan Integration test passed with this implementation |
@tylerzhao7684 , as we are very close to merge this in. Assuming the window testing passes, could you please squash your 4 commits into 1 commit as they essentially all for fixing one issue? The configuration in this repo is set to merge all 4 commits into the repo instead of squashing them into 1 automatically, to allow one large PR can have multiple meaningful commits. You can choose the way you like to do the squash, e.g., Thanks you! |
@tylerzhao7684 , can you please take a look at my previous comment to squash the change? This PR is ready to merge once the commit is cleaned up. |
Using destructor to close MMD libraries Clang format Closing mmd_lib in destructor that is not opened globally
@tylerzhao7684 , can you please take a look at the workflow failure? My guess is, One possible guess is: |
This previous workflow didn't fail because #277 was not merged in, so even if this PR fixes one coverity issue, the other one still remain as it is not merged Now it fails because it couldn't find cov-errors.txt, which is a good sign because now we don't have coverity issues anymore! |
I am not 100% sure if it indeed failed due to cov-errors.txt is not found, because in the workflow, |
A separate commit for the workflow fix is more appropriate (no need to squash) but can be merged in the same PR. |
You are correct, there is a cov-errors.txt. |
Type: Resource leak (RESOURCE_LEAK)
mmd_library
is not properly closed under several exit conditions, we need to close it before exiting