From 786c9adaa2af6fbd5a369643de897cbeca884f3f Mon Sep 17 00:00:00 2001 From: Cory Snider Date: Tue, 20 Jun 2023 14:14:55 -0400 Subject: [PATCH] daemon: fix double-unlock in health check probe Signed-off-by: Cory Snider --- daemon/health.go | 1 - 1 file changed, 1 deletion(-) diff --git a/daemon/health.go b/daemon/health.go index fedc7efca7..e9efebed63 100644 --- a/daemon/health.go +++ b/daemon/health.go @@ -160,7 +160,6 @@ func (p *cmdProbe) run(ctx context.Context, d *Daemon, cntr *container.Container info.Lock() defer info.Unlock() if info.ExitCode == nil { - info.Unlock() return 0, fmt.Errorf("healthcheck for container %s has no exit code", cntr.ID) } return *info.ExitCode, nil