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

Use Py_XDECREF for pytopic_names_and_types. #638

Merged
merged 1 commit into from
Nov 11, 2020
Merged

Conversation

clalancette
Copy link
Contributor

If we got here through PyList_New failing, then pytopic_names_and_types
could be NULL. Therefore, we need to use Py_XDECREF to handle
the situation. Pointed out by clang static analysis.

Signed-off-by: Chris Lalancette clalancette@openrobotics.org

If we got here through PyList_New failing, then pytopic_names_and_types
could be NULL.  Therefore, we need to use Py_XDECREF to handle
the situation.  Pointed out by clang static analysis.

Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
@clalancette
Copy link
Contributor Author

clalancette commented Nov 11, 2020

CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@clalancette
Copy link
Contributor Author

The warnings on Windows are being addressed by ros2/rcutils#311 , so they aren't caused by this PR.

Thanks for the review, going ahead and merging this.

@clalancette clalancette merged commit 25c2d02 into master Nov 11, 2020
@clalancette clalancette deleted the clalancette/xdecref branch November 11, 2020 20:49
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