From 485d6bb6e743afe9b4dd54c8a26ac64d4d79963e Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Fri, 29 Mar 2019 08:48:56 +1100 Subject: [PATCH] Fix leaked conntrack.EntryHandle --- client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/client.go b/client.go index ba6599fa..f8d70372 100644 --- a/client.go +++ b/client.go @@ -522,6 +522,7 @@ func (cl *Client) dialFirst(ctx context.Context, addr string) dialResult { 0, ) if ctx.Err() != nil { + cte.Forget() resCh <- dialResult{} return }