Forráskód Böngészése

builder-next: avoid double unmounting mountable

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
(cherry picked from commit 9ea2cf320ad2687a51aea1ed849f86f465cbc1d9)
Tonis Tiigi 5 éve
szülő
commit
cad2cd71b7

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

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