We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fa6135 commit 6f82fe7Copy full SHA for 6f82fe7
src/router_core/router_core.c
@@ -234,6 +234,21 @@ void qdr_core_free(qdr_core_t *core)
234
free(link->insert_prefix);
235
free(link->strip_prefix);
236
link->name = 0;
237
+
238
+ //
239
+ // If there are still any work items remaining in the link->work_list
240
+ // remove them and free the associated link_work->error
241
242
+ sys_mutex_lock(link->conn->work_lock);
243
+ qdr_link_work_t *link_work = DEQ_HEAD(link->work_list);
244
+ while (link_work) {
245
+ DEQ_REMOVE_HEAD(link->work_list);
246
+ qdr_error_free(link_work->error);
247
+ free_qdr_link_work_t(link_work);
248
+ link_work = DEQ_HEAD(link->work_list);
249
+ }
250
+ sys_mutex_unlock(link->conn->work_lock);
251
252
free_qdr_link_t(link);
253
link = DEQ_HEAD(core->open_links);
254
}
0 commit comments