Skip to content

Commit

Permalink
Merge pull request opencontainers#1955 from xiaochenshen/rdt-fix-dest…
Browse files Browse the repository at this point in the history
…roy-issue

libcontainer: intelrdt: fix null intelrdt path issue in Destroy()
  • Loading branch information
Mrunal Patel authored Feb 1, 2019
2 parents 4e4c907 + acb75d0 commit e4fa8a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcontainer/intelrdt/intelrdt.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand Down

0 comments on commit e4fa8a4

Please sign in to comment.