-
Notifications
You must be signed in to change notification settings - Fork 224
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
Use Py_XDECREF for pynode_names_and_namespaces #673
Conversation
As pointed out by clang static analysis, it is possible for pynode_names_and_namespaces to be NULL during cleanup. Thus use Py_XDECREF everywhere to do that checking for us. Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice - is there a clang static analysis build going on on the buildfarm for this?
Not currently, no. I've been running this locally and just fixing the bugs as I see them. The goal is indeed to have jobs available to do this either on https://ci.ros2.org, or as part of the PR jobs. |
The test failures on macOS are the same as in the nightlies: https://ci.ros2.org/view/nightly/job/nightly_osx_repeated/2233/#showFailuresLink . So I'm going to go ahead and merge this. Thanks for the review. |
Might be related to aarch64 regressions today: https://ci.ros2.org/job/nightly_linux-aarch64_repeated/1488/testReport/junit/(root)/projectroot/test_client/ ? |
I don't think so; I just merged it this morning, so it wouldn't have been used in the nightlies. |
Sorry, I meant that the problem in the nightly might have been resolved by this or do you think that the root cause is different. |
I think it is probably different; this only would be a problem during unlikely error paths. I'll suggest to open a new issue with that failure, since it is likely something different. |
As pointed out by clang static analysis, it is possible for
pynode_names_and_namespaces to be NULL during cleanup. Thus
use Py_XDECREF everywhere to do that checking for us.
Signed-off-by: Chris Lalancette clalancette@openrobotics.org