merge branch 'pr-1752'
cgroups/fs: fix NPE on Destroy than no cgroups are set LGTMs: @crosbymichael @cyphar Closes #1752
This commit is contained in:
commit
108570c6e4
|
@ -161,7 +161,7 @@ func (m *Manager) Apply(pid int) (err error) {
|
|||
}
|
||||
|
||||
func (m *Manager) Destroy() error {
|
||||
if m.Cgroups.Paths != nil {
|
||||
if m.Cgroups == nil || m.Cgroups.Paths != nil {
|
||||
return nil
|
||||
}
|
||||
m.mu.Lock()
|
||||
|
|
Loading…
Reference in New Issue