Skip to content

Fix incorrect reference to service instead of pyservice - #137

Merged
dhood merged 1 commit into
masterfrom
fix_136
Oct 31, 2017
Merged

dhood merged 1 commit into
masterfrom
fix_136

Conversation

@dhood

@dhood dhood commented Oct 31, 2017

Copy link
Copy Markdown
Member

Fixes #136

Standard CI:

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

Windows Debug retest-until-fail 10 on rclpy: Build Status

@dhood dhood added the in review Waiting for review (Kanban column) label Oct 31, 2017
@dhood dhood self-assigned this Oct 31, 2017

@mikaelarguedas mikaelarguedas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, looks like it was the only decref in that PR that had the typo

Comment thread rclpy/src/rclpy/_rclpy.c
"Failed to create service: %s", rcl_get_error_string_safe());
}
Py_DECREF(service);
Py_DECREF(pyservice);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this also necessary before returning in line 1430?

Does service need to be deallocated?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be a follow up PR. We should check that every creation that has been moved up a few blocks is properly deallocated in case of failure

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes to both. For the first one the PyCapsule_New line could be moved after 1430.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So do we agree this can be merged as is ?
@sloretz would you mind submitting a separate PR to address the remaining items ?

@sloretz sloretz Oct 31, 2017 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mikaelarguedas Sounds good. Will do

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dhood
dhood merged commit ec22202 into master Oct 31, 2017
@dhood
dhood deleted the fix_136 branch October 31, 2017 19:16
@dhood dhood removed the in review Waiting for review (Kanban column) label Oct 31, 2017
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.

4 participants