Repository: qpid-proton
Updated Branches:
  refs/heads/master a1f0dd167 -> f8c4c2791


PROTON-1332: go: electron client leaking links/sessions

Was not calling proton.Link/Session.Free() so links/sessions were never freed
till the connection was closed.


Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/f8c4c279
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/f8c4c279
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/f8c4c279

Branch: refs/heads/master
Commit: f8c4c279126f2143c6f9e219cd0e1b6c27b6b7f0
Parents: a17d30a
Author: Alan Conway <acon...@redhat.com>
Authored: Mon Oct 24 20:41:59 2016 -0400
Committer: Alan Conway <acon...@redhat.com>
Committed: Mon Oct 24 20:52:30 2016 -0400

----------------------------------------------------------------------
 proton-c/bindings/go/src/qpid.apache.org/electron/handler.go | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/f8c4c279/proton-c/bindings/go/src/qpid.apache.org/electron/handler.go
----------------------------------------------------------------------
diff --git a/proton-c/bindings/go/src/qpid.apache.org/electron/handler.go 
b/proton-c/bindings/go/src/qpid.apache.org/electron/handler.go
index 588ba79..af1efd6 100644
--- a/proton-c/bindings/go/src/qpid.apache.org/electron/handler.go
+++ b/proton-c/bindings/go/src/qpid.apache.org/electron/handler.go
@@ -159,6 +159,7 @@ func (h *handler) linkClosed(l proton.Link, err error) {
        if link, ok := h.links[l]; ok {
                _ = link.closed(err)
                delete(h.links, l)
+               l.Free()
        }
 }
 
@@ -171,6 +172,7 @@ func (h *handler) sessionClosed(ps proton.Session, err 
error) {
                                h.linkClosed(l, err)
                        }
                }
+               ps.Free()
        }
 }
 


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

Reply via email to