builder-next: avoid double unmounting mountable

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
Tonis Tiigi 2019-08-15 17:40:33 -07:00
parent f18ad28874
commit 9ea2cf320a
1 changed files with 3 additions and 0 deletions

View File

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