From 01d1489334337c567b9e9cd9488a4eae82ed2f86 Mon Sep 17 00:00:00 2001 From: Kim Oliver Drechsel Date: Tue, 5 Nov 2024 16:21:21 +0100 Subject: [PATCH 1/2] fix(#190): memory leak caused by HealthCheckHandler function --- internal/docker/compose.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/docker/compose.go b/internal/docker/compose.go index 057fddb..b9a0d9b 100644 --- a/internal/docker/compose.go +++ b/internal/docker/compose.go @@ -118,6 +118,7 @@ func VerifySocketConnection(apiVersion string) error { } httpClient := NewHttpClient() + defer httpClient.CloseIdleConnections() err = VerifySocketRead(httpClient, apiVersion) if err != nil { From fe01008ba8d6768a7370ef8a8bf62a7af7ed3a17 Mon Sep 17 00:00:00 2001 From: Kim Oliver Drechsel Date: Tue, 5 Nov 2024 16:59:35 +0100 Subject: [PATCH 2/2] chore: update module github.com/docker/cli to v27.3.2-0.20241008150905-cb3048fbebb1+incompatible --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index f986966..a1751ce 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ require ( github.com/caarlos0/env/v11 v11.2.2 github.com/compose-spec/compose-go/v2 v2.4.3 github.com/creasty/defaults v1.8.0 - github.com/docker/cli b45477bffae3 + github.com/docker/cli v27.3.2-0.20241008150905-cb3048fbebb1+incompatible github.com/docker/compose/v2 v2.30.1 github.com/docker/docker v27.3.1+incompatible github.com/go-git/go-git/v5 v5.12.0