From d3d9c5ed94952bc963312e1d93504041d269f06a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20F=20Bj=C3=B6rklund?= Date: Sat, 9 Feb 2019 18:07:43 +0100 Subject: [PATCH] Avoid double unlock of image load mutex Causes a runtime crash, with --cache-images: "fatal error: sync: unlock of unlocked mutex" --- pkg/minikube/machine/cache_images.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/minikube/machine/cache_images.go b/pkg/minikube/machine/cache_images.go index aa266769f4..9123b62c91 100644 --- a/pkg/minikube/machine/cache_images.go +++ b/pkg/minikube/machine/cache_images.go @@ -223,7 +223,6 @@ func LoadFromCacheBlocking(cr bootstrapper.CommandRunner, k8s config.KubernetesC if err != nil { return errors.Wrapf(err, "%s load %s", r.Name(), dst) } - loadImageLock.Unlock() if err := cr.Run("sudo rm -rf " + dst); err != nil { return errors.Wrap(err, "deleting temp docker image location")