This is an automated email from the ASF dual-hosted git repository.
kgiusti 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 199452e DISPATCH-2318: fix double-free of subscription on shutdown
199452e is described below
commit 199452ed1df7508a2dca9f5efbbdaf6d5aaf7682
Author: Kenneth Giusti <[email protected]>
AuthorDate: Wed Jan 26 16:14:17 2022 -0500
DISPATCH-2318: fix double-free of subscription on shutdown
This closes #1498
---
src/router_core/route_tables.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/router_core/route_tables.c b/src/router_core/route_tables.c
index 625936f..076b4d0 100644
--- a/src/router_core/route_tables.c
+++ b/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);
+ }
qdr_field_free(address);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]