This is an automated email from the ASF dual-hosted git repository.

gsim pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/qpid-dispatch.git


The following commit(s) were added to refs/heads/master by this push:
     new 0ed5d5c  DISPATCH-1407: free link when peer closes it if router does 
not have any conetxt for it
0ed5d5c is described below

commit 0ed5d5c5c0f00c92e8ac0d02cac3e462a9ebdfd6
Author: Gordon Sim <g...@redhat.com>
AuthorDate: Mon Sep 9 09:16:06 2019 +0100

    DISPATCH-1407: free link when peer closes it if router does not have any 
conetxt for it
---
 src/container.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/container.c b/src/container.c
index d541df7..0404cf8 100644
--- a/src/container.c
+++ b/src/container.c
@@ -620,6 +620,8 @@ void qd_container_handle_event(qd_container_t *container, 
pn_event_t *event,
                 if (node) {
                     node->ntype->link_detach_handler(node->context, qd_link, 
dt);
                 }
+            } else {
+                pn_link_free(pn_link);
             }
         }
         break;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org
For additional commands, e-mail: commits-h...@qpid.apache.org

Reply via email to