summaryrefslogtreecommitdiffhomepage
path: root/runsc
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-10-12 17:44:01 +0000
committergVisor bot <gvisor-bot@google.com>2020-10-12 17:44:01 +0000
commit4ba161010c514ab98d004af338fd6238894568db (patch)
tree6f5c2e321dbfaeb21de81de9059796f982b61cbb /runsc
parentae0ab57fdfcadf771cb849b79cdb6d6e0a4bdbbf (diff)
parentd861cd5f14bc42b32eeac20c444a685f1d9748f7 (diff)
Merge release-20200928.0-91-gd861cd5f1 (automated)
Diffstat (limited to 'runsc')
-rw-r--r--runsc/boot/loader.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/runsc/boot/loader.go b/runsc/boot/loader.go
index dee2c4fbb..9a08ebc60 100644
--- a/runsc/boot/loader.go
+++ b/runsc/boot/loader.go
@@ -472,9 +472,13 @@ func (l *Loader) Destroy() {
}
l.watchdog.Stop()
+ // Release all kernel resources. This is only safe after we can no longer
+ // save/restore.
+ l.k.Release()
+
// In the success case, stdioFDs and goferFDs will only contain
// released/closed FDs that ownership has been passed over to host FDs and
- // gofer sessions. Close them here in case on failure.
+ // gofer sessions. Close them here in case of failure.
for _, fd := range l.root.stdioFDs {
_ = fd.Close()
}