You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by GitBox <gi...@apache.org> on 2022/01/27 14:07:52 UTC
[GitHub] [qpid-dispatch] jiridanek commented on a change in pull request #1498: DISPATCH-2318: fix double-free of subscription on shutdown
jiridanek commented on a change in pull request #1498:
URL: https://github.com/apache/qpid-dispatch/pull/1498#discussion_r793639170
##########
File path: src/router_core/route_tables.c
##########
@@ -671,8 +671,7 @@ static void qdr_subscribe_CT(qdr_core_t *core, qdr_action_t *action, bool discar
DEQ_INSERT_TAIL(addr->subscriptions, sub);
qdr_addr_start_inlinks_CT(core, addr);
}
- } else
- free(sub);
+ }
Review comment:
I was not sure if this is safe thing to do, but it probably is: if this causes problems (=leak), that would mean there is bug somewhere else (maybe causing the "unsubscribe" action not to be scheduled).
--
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.
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org