Permalink
Browse files

Merge pull request #1955 from xiaochenshen/rdt-fix-destroy-issue

libcontainer: intelrdt: fix null intelrdt path issue in Destroy()
  • Loading branch information...
mrunalp committed Feb 1, 2019
2 parents 4e4c907 + acb75d0 commit e4fa8a457544ca646e02e60d124aebb0bb7f52ad
Showing with 1 addition and 1 deletion.
  1. +1 −1 libcontainer/intelrdt/intelrdt.go
@@ -547,7 +547,7 @@ func (m *IntelRdtManager) Apply(pid int) (err error) {
func (m *IntelRdtManager) Destroy() error {
m.mu.Lock()
defer m.mu.Unlock()
if err := os.RemoveAll(m.Path); err != nil {
if err := os.RemoveAll(m.GetPath()); err != nil {
return err
}
m.Path = ""

0 comments on commit e4fa8a4

Please sign in to comment.