Browse code

builder-next: avoid double unmounting mountable

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
(cherry picked from commit 9ea2cf320ad2687a51aea1ed849f86f465cbc1d9)

Tonis Tiigi authored on 2019/08/16 09:40:33
Showing 1 changed files
... ...
@@ -480,6 +480,9 @@ func (m *mountable) Release() error {
480 480
 	}
481 481
 
482 482
 	m.mounts = nil
483
+	defer func() {
484
+		m.release = nil
485
+	}()
483 486
 	return m.release()
484 487
 }
485 488