瀏覽代碼

builder-next: avoid double unmounting mountable

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
(cherry picked from commit 9ea2cf320ad2687a51aea1ed849f86f465cbc1d9)
Tonis Tiigi 5 年之前
父節點
當前提交
cad2cd71b7
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      builder/builder-next/adapters/snapshot/snapshot.go

+ 3 - 0
builder/builder-next/adapters/snapshot/snapshot.go

@@ -480,6 +480,9 @@ func (m *mountable) Release() error {
 	}
 
 	m.mounts = nil
+	defer func() {
+		m.release = nil
+	}()
 	return m.release()
 }