Skip to content

Commit

Permalink
fix(#190): memory leak caused by HealthCheckHandler function (#191)
Browse files Browse the repository at this point in the history
* fix(#190): memory leak caused by HealthCheckHandler function

* chore: update module github.com/docker/cli to v27.3.2-0.20241008150905-cb3048fbebb1+incompatible
  • Loading branch information
kimdre authored Nov 5, 2024
1 parent ed3c83f commit 0122304
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions internal/docker/compose.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ func VerifySocketConnection(apiVersion string) error {
}

httpClient := NewHttpClient()
defer httpClient.CloseIdleConnections()

err = VerifySocketRead(httpClient, apiVersion)
if err != nil {
Expand Down

0 comments on commit 0122304

Please sign in to comment.