From 3eb44ed6a008784366addb08c63ee81b82087034 Mon Sep 17 00:00:00 2001 From: William Woodall Date: Fri, 4 Sep 2015 11:31:32 -0700 Subject: [PATCH] remove redundant comparison; simplify logic --- rclcpp/include/rclcpp/node_impl.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rclcpp/include/rclcpp/node_impl.hpp b/rclcpp/include/rclcpp/node_impl.hpp index 1668451d61..4412cafc0c 100644 --- a/rclcpp/include/rclcpp/node_impl.hpp +++ b/rclcpp/include/rclcpp/node_impl.hpp @@ -71,12 +71,10 @@ Node::Node( throw std::runtime_error("failed to interpret ROS_DOMAIN_ID as integral number"); } domain_id = static_cast(number); - } #ifdef _WIN32 - if (ros_domain_id) { free(ros_domain_id); - } #endif + } auto node = rmw_create_node(name_.c_str(), domain_id); if (!node) {