diff --git a/rcl/src/rcl/node.c b/rcl/src/rcl/node.c index 5af2724..7834bfc 100644 --- a/rcl/src/rcl/node.c +++ b/rcl/src/rcl/node.c @@ -93,10 +93,7 @@ const char * rcl_create_node_logger_name( // Join the namespace and node name to create the logger name. char * node_logger_name = rcutils_format_string( *allocator, "%s%s%s", ns_with_separators, RCUTILS_LOGGING_SEPARATOR_STRING, node_name); - if (NULL == node_logger_name) { - allocator->deallocate((char *)ns_with_separators, allocator->state); - return NULL; - } + allocator->deallocate((char *)ns_with_separators, allocator->state); return node_logger_name; }