Skip to content

Commit

Permalink
Fix Compiler Warning
Browse files Browse the repository at this point in the history
Signed-off-by: Hunter L. Allen <hunterlallen@protonmail.com>
  • Loading branch information
allenh1 committed Oct 4, 2019
1 parent 9723576 commit d440549
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rclcpp/include/rclcpp/message_memory_strategy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ class MessageMemoryStrategy
auto serialized_msg = std::shared_ptr<rcl_serialized_message_t>(
msg,
[](rmw_serialized_message_t * msg) {
auto ret = rmw_serialized_message_fini(msg);
auto fini_ret = rmw_serialized_message_fini(msg);
delete msg;
if (ret != RCL_RET_OK) {
if (fini_ret != RCL_RET_OK) {
RCUTILS_LOG_ERROR_NAMED(
"rclcpp",
"failed to destroy serialized message: %s", rcl_get_error_string().str);
Expand Down

0 comments on commit d440549

Please sign in to comment.