ted-ross commented on a change in pull request #463: DISPATCH-1276 - Added a 
cleanup function qdrc_address_endpoint_cleanu…
URL: https://github.com/apache/qpid-dispatch/pull/463#discussion_r265678558
 
 

 ##########
 File path: src/router_core/modules/edge_addr_tracking/edge_addr_tracking.c
 ##########
 @@ -101,13 +102,12 @@ static void qdrc_address_endpoint_first_attach(void      
        *bind_context,
     qdr_addr_endpoint_state_t *endpoint_state = 
new_qdr_addr_endpoint_state_t();
 
     ZERO(endpoint_state);
-    endpoint_state->endpoint = endpoint;
-    endpoint_state->mc       = bc;
-    endpoint_state->conn     = qdrc_endpoint_get_connection_CT(endpoint);
-
+    endpoint_state->endpoint  = endpoint;
+    endpoint_state->ref_count = 1;
 
 Review comment:
   Why is the ref_count initialized to 1?  To which reference does this refer?

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to