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() (ros2…
…#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>
- Loading branch information