Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit fd7732e

Browse files
committed
builder-next: avoid double unmounting mountable
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com> (cherry picked from commit 9ea2cf320ad2687a51aea1ed849f86f465cbc1d9) Upstream-commit: cad2cd71b785c27789a55edc9a6450fc4503b01b Component: engine
1 parent 3787957 commit fd7732e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • components/engine/builder/builder-next/adapters/snapshot

components/engine/builder/builder-next/adapters/snapshot/snapshot.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,9 @@ func (m *mountable) Release() error {
480480
}
481481

482482
m.mounts = nil
483+
defer func() {
484+
m.release = nil
485+
}()
483486
return m.release()
484487
}
485488

0 commit comments

Comments
 (0)