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

libcontainer: intelrdt: fix null intelrdt path issue in Destroy()
This commit is contained in:
Mrunal Patel
2019-02-01 13:18:56 -08:00
committed by GitHub
+1 -1
View File
@@ -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 = ""