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_r401407310
 
 

 ##########
 File path: bundles/pubsub/pubsub_admin_tcp/src/pubsub_tcp_topic_receiver.c
 ##########
 @@ -325,7 +327,9 @@ void 
pubsub_tcpTopicReceiver_destroy(pubsub_tcp_topic_receiver_t *receiver) {
             receiver->socketHandler = NULL;
         }
 
-        free(receiver->scope);
+        if (receiver->scope != NULL) {
 
 Review comment:
   dito free on NULL is allowed

----------------------------------------------------------------
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

Reply via email to