Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* * Fix rmw_fastrtps dead code Dead code in API rmw_create_subscription() becasue the condition "rmw_subscription" cannot be true in the "fail" clauses, the execution cannot reach this statement: rmw_subscription_free(rmw_subscription); finally, the "rmw_subscribtion" is free by rmw_destroy_subscription() when it's not a nullptr Dead code in API rmw_create_publisher() because the condition "rmw_publisher" cannot be true in the "fail" clauses, the execution cannot reach this statement: rmw_publisher_free(rmw_publisher); finally, the "rmw_publisher" is free by rmw_destroy_publisher() when it's not a nullptr Signed-off-by: Ethan Gao <ethan.gao@linux.intel.com> * * Add memory allocation checking for topic name this memory allocation checking avoids the unintended behaviour which derives from unknown memory free issue at rmw_destroy_publisher Signed-off-by: Ethan Gao <ethan.gao@linux.intel.com> * publiser -> publisher Signed-off-by: Chris Lalancette <clalancette@openrobotics.org> * tweak the log information more accurate Signed-off-by: Ethan Gao <ethan.gao@linux.intel.com>
- Loading branch information