This is an automated email from the ASF dual-hosted git repository.
gmurthy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-dispatch.git
The following commit(s) were added to refs/heads/main by this push:
new a91eee4 DISPATCH-2115: Free conn->conn_link_routes on router shut
down. This closes #1233
a91eee4 is described below
commit a91eee4ce83bbf77279e23fef850b7f9f6388995
Author: Ganesh Murthy <[email protected]>
AuthorDate: Mon May 24 09:35:43 2021 -0400
DISPATCH-2115: Free conn->conn_link_routes on router shut down. This closes
#1233
---
src/router_core/router_core.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/router_core/router_core.c b/src/router_core/router_core.c
index 740687c..145063c 100644
--- a/src/router_core/router_core.c
+++ b/src/router_core/router_core.c
@@ -281,6 +281,11 @@ void qdr_core_free(qdr_core_t *core)
while (conn) {
DEQ_REMOVE_HEAD(core->open_connections);
+ while ( (link_route = DEQ_HEAD(conn->conn_link_routes))) {
+ DEQ_REMOVE_HEAD(conn->conn_link_routes);
+ qdr_core_delete_link_route(core, link_route);
+ }
+
if (conn->conn_id) {
qdr_del_connection_ref(&conn->conn_id->connection_refs, conn);
qdr_route_check_id_for_deletion_CT(core, conn->conn_id);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]