Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix memory leak in rcl_subscription_init()/rcl_publisher_init() (#794) (
#833) * 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 redundant error formatting (#834) Follow-up to #794. rmw_get_error_string already formats the error with the file and line number. Signed-off-by: Jacob Perron <jacob@openrobotics.org> Co-authored-by: Barry Xu <barry.xu@sony.com>
- Loading branch information