Skip to content

Commit a3e73e0

Browse files
committed
Alocator updates
1 parent 6bf8fc4 commit a3e73e0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rclcpp/src/rclcpp/node_interfaces/node_parameters.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ NodeParameters::NodeParameters(
6969
if (NULL == yaml_params) {
7070
throw std::runtime_error("Failed to initialize yaml params struct");
7171
}
72-
if (!rcl_parse_yaml_file(yaml_path.c_str(), yaml_params, options->allocator)) {
72+
if (!rcl_parse_yaml_file(yaml_path.c_str(), yaml_params)) {
7373
throw std::runtime_error("Failed to parse parameters " + yaml_path);
7474
}
7575

@@ -81,7 +81,7 @@ NodeParameters::NodeParameters(
8181
throw std::runtime_error("Node name and namespace were not set");
8282
}
8383
std::string combined_name;
84-
if ('/' == node_namespace.at(node_namespace.size()-1)) {
84+
if ('/' == node_namespace.at(node_namespace.size() - 1)) {
8585
combined_name = node_namespace + node_name;
8686
} else {
8787
combined_name = node_namespace + '/' + node_name;
@@ -151,12 +151,12 @@ NodeParameters::NodeParameters(
151151
}
152152
parameters.emplace_back(param_name, strings);
153153
} else {
154-
rcl_yaml_node_struct_fini(yaml_params, options->allocator);
154+
rcl_yaml_node_struct_fini(yaml_params);
155155
throw std::runtime_error("Invalid parameter from parser");
156156
}
157157
}
158158
}
159-
rcl_yaml_node_struct_fini(yaml_params, options->allocator);
159+
rcl_yaml_node_struct_fini(yaml_params);
160160

161161
// Set the parameters
162162
rcl_interfaces::msg::SetParametersResult result = set_parameters_atomically(parameters);

0 commit comments

Comments
 (0)