From 934fa7797654cda5f481ee20766c188087faec6d Mon Sep 17 00:00:00 2001 From: Shane Loretz Date: Wed, 6 Jun 2018 09:13:38 -0700 Subject: [PATCH] Deallocate param_files --- rclcpp/src/rclcpp/node_interfaces/node_parameters.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rclcpp/src/rclcpp/node_interfaces/node_parameters.cpp b/rclcpp/src/rclcpp/node_interfaces/node_parameters.cpp index 4fecba053a..75066e0628 100644 --- a/rclcpp/src/rclcpp/node_interfaces/node_parameters.cpp +++ b/rclcpp/src/rclcpp/node_interfaces/node_parameters.cpp @@ -78,7 +78,9 @@ NodeParameters::NodeParameters( } for (int i = 0; i < num_yaml_files; ++i) { yaml_paths.emplace_back(param_files[i]); + options->allocator.deallocate(param_files[i], options->allocator.state); } + options->allocator.deallocate(param_files, options->allocator.state); } };