Skip to content

Commit

Permalink
Deallocate param_files
Browse files Browse the repository at this point in the history
  • Loading branch information
sloretz committed Jun 6, 2018
1 parent bfb497c commit 934fa77
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rclcpp/src/rclcpp/node_interfaces/node_parameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
};

Expand Down

0 comments on commit 934fa77

Please sign in to comment.