From 8f4b040d167b75301a1cb2390a5977fe2380faef Mon Sep 17 00:00:00 2001 From: Derek Su Date: Tue, 11 Jul 2023 10:31:33 +0800 Subject: [PATCH] Fix socket fd leakage Longhorn 6287 Signed-off-by: Derek Su (cherry picked from commit 83197d83e75c4e84116d2e0940d02809f75044b0) --- engineapi/instance_manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engineapi/instance_manager.go b/engineapi/instance_manager.go index 0a647671b8..537c2897f5 100644 --- a/engineapi/instance_manager.go +++ b/engineapi/instance_manager.go @@ -65,7 +65,7 @@ func (c *InstanceManagerClient) Close() error { } if c.diskServiceGrpcClient != nil { - err = multierr.Append(err, c.instanceServiceGrpcClient.Close()) + err = multierr.Append(err, c.diskServiceGrpcClient.Close()) } if c.instanceServiceGrpcClient != nil {