From 246fb29d8a923724dd2514741c57708589acdebb Mon Sep 17 00:00:00 2001 From: Anthony Romano Date: Wed, 14 Dec 2016 12:11:17 -0800 Subject: [PATCH] clientv3: close Lease on client Close Fixes #6987 --- clientv3/client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/clientv3/client.go b/clientv3/client.go index 44494cbed..a667ae477 100644 --- a/clientv3/client.go +++ b/clientv3/client.go @@ -88,6 +88,7 @@ func NewFromConfigFile(path string) (*Client, error) { func (c *Client) Close() error { c.cancel() c.Watcher.Close() + c.Lease.Close() return toErr(c.ctx, c.conn.Close()) }