Skip to content

Commit

Permalink
Drop unnecessary assert.
Browse files Browse the repository at this point in the history
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
  • Loading branch information
hidmic committed Jul 14, 2020
1 parent e2e4632 commit 49992cd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion rmw_cyclonedds_cpp/src/rmw_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1340,7 +1340,6 @@ extern "C" rmw_ret_t rmw_destroy_node(rmw_node_t * node)
common->pub, static_cast<void *>(&participant_msg), nullptr);
}

assert(node->context != nullptr);
rmw_context_t * context = node->context;
rcutils_allocator_t allocator = context->options.allocator;
allocator.deallocate(const_cast<char *>(node->name), allocator.state);
Expand Down

0 comments on commit 49992cd

Please sign in to comment.