pnoltes commented on a change in pull request #181: Updated ZMQ implementation
to use NULL if scope is not set. Only when…
URL: https://github.com/apache/celix/pull/181#discussion_r401407116
##########
File path: bundles/pubsub/pubsub_admin_tcp/src/pubsub_tcp_topic_receiver.c
##########
@@ -259,11 +259,13 @@ pubsub_tcp_topic_receiver_t
*pubsub_tcpTopicReceiver_create(celix_bundle_context
}
if (receiver->socketHandler == NULL) {
- free(receiver->scope);
+ if (receiver->scope != NULL) {
Review comment:
free on NULL is allowed. if is not needed
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services