# HG changeset patch # User Henry Precheur # Date 1490157008 25200 # Tue Mar 21 21:30:08 2017 -0700 # Node ID 5e6c07f94dbcb7a610bf367ee7ebebe3ee7ffaf2 # Parent 88af2b28bf19f655f24646b72f8529c578339199 Add comment diff --git a/dispatch.go b/dispatch.go --- a/dispatch.go +++ b/dispatch.go @@ -61,6 +61,7 @@ if k != id { newchan[k] = v // copy all data from the current object to the new one } else { + // close channel so we don't leak it close(v) } }