Skip to content

Commit 8ce3593

Browse files
committed
DISPATCH-1697: Delete the connection ref associated with alt_conn_id. This closes #1124.
1 parent f67e135 commit 8ce3593

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/alloc_pool.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,7 @@ DEQ_DECLARE(qd_alloc_type_t, qd_alloc_type_list_t);
9191
static const char *leaking_types[] = {
9292
// DISPATCH-1679:
9393
"qd_timer_t", "qd_connector_t",
94-
9594
"qd_hash_handle_t", // DISPATCH-1696
96-
"qdr_conn_identifier_t", // DISPATCH-1697
97-
"qdr_connection_ref_t", // DISPATCH-1698
9895

9996
// system_tests_edge_router (centos7)
10097
// DISPATCH-1699

src/router_core/router_core.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,11 @@ void qdr_core_free(qdr_core_t *core)
263263
qdr_route_check_id_for_deletion_CT(core, conn->conn_id);
264264
}
265265

266+
if (conn->alt_conn_id) {
267+
qdr_del_connection_ref(&conn->alt_conn_id->connection_refs, conn);
268+
qdr_route_check_id_for_deletion_CT(core, conn->alt_conn_id);
269+
}
270+
266271
qdr_connection_work_t *work = DEQ_HEAD(conn->work_list);
267272
while (work) {
268273
DEQ_REMOVE_HEAD(conn->work_list);

0 commit comments

Comments
 (0)