소스 검색

builder-next: avoid double unmounting mountable

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
(cherry picked from commit 9ea2cf320ad2687a51aea1ed849f86f465cbc1d9)
Tonis Tiigi 6 년 전
부모
커밋
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()
 }