From 1510288571bb6ddc43432506378373281b3411b8 Mon Sep 17 00:00:00 2001 From: Tonis Tiigi Date: Mon, 1 Apr 2024 16:16:17 -0700 Subject: [PATCH] oci: fix missing release call Signed-off-by: Tonis Tiigi --- executor/oci/spec.go | 1 + 1 file changed, 1 insertion(+) diff --git a/executor/oci/spec.go b/executor/oci/spec.go index 89103e9de0b4..8164fc9ae7b3 100644 --- a/executor/oci/spec.go +++ b/executor/oci/spec.go @@ -221,6 +221,7 @@ func GenerateSpec(ctx context.Context, meta executor.Meta, mounts []executor.Mou if userns.RunningInUserNS() { s.Mounts, err = rootlessmountopts.FixUpOCI(s.Mounts) if err != nil { + releaseAll() return nil, nil, err } }