You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ac...@apache.org on 2016/10/25 00:56:00 UTC

[3/5] qpid-proton git commit: PROTON-1332: go: electron client leaking links/sessions

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/aconway-libuv-driver
Commit: f8c4c279126f2143c6f9e219cd0e1b6c27b6b7f0
Parents: a17d30a
Author: Alan Conway <ac...@redhat.com>
Authored: Mon Oct 24 20:41:59 2016 -0400
Committer: Alan Conway <ac...@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-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org