Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…#834) (#832) * Fix memory leak in rcl_subscription_init()/rcl_publisher_init() (#794) * Fix memory leak in rcl_subscription_init()/rcl_publisher_init() In rcl_subscription_init(), while rmw_subscription_get_actual_qos() return failure, created rmw subscription handle isn't freed. In rcl_publisher_init(), while rmw_publisher_get_actual_qos() return failure, created rmw publisher handle isn't freed. Signed-off-by: Barry Xu <barry.xu@sony.com> * Remove codes on the cascading errors. Signed-off-by: Barry Xu <barry.xu@sony.com> * Change code style Signed-off-by: Barry Xu <barry.xu@sony.com> * Output error message to stderr Signed-off-by: Barry Xu <barry.xu@sony.com> * Remove format string This version of the macro is not available in Foxy. Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Print new line Signed-off-by: Jacob Perron <jacob@openrobotics.org> Co-authored-by: Barry Xu <barry.xu@sony.com>
- Loading branch information