mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Destroy Kernel.mf on kernel release.
Otherwise after restore when the old kernel is replaced, we were leaking its MemoryFile resources when the old kernel was released. PiperOrigin-RevId: 644777850
This commit is contained in:
@@ -1918,6 +1918,7 @@ func (k *Kernel) Release() {
|
||||
k.rootIPCNamespace.DecRef(ctx)
|
||||
k.rootUTSNamespace.DecRef(ctx)
|
||||
k.cleaupDevGofers()
|
||||
k.mf.Destroy()
|
||||
}
|
||||
|
||||
// PopulateNewCgroupHierarchy moves all tasks into a newly created cgroup
|
||||
|
||||
Reference in New Issue
Block a user