Merge pull request #2042 from xiaochenshen/rdt-add-missing-destroy

libcontainer: intelrdt: add missing destroy handler in defer func
This commit is contained in:
Qiang Huang 2019-05-21 09:48:00 +08:00 committed by GitHub
commit c8337777b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -353,6 +353,9 @@ func (p *initProcess) start() error {
if err != nil {
// TODO: should not be the responsibility to call here
p.manager.Destroy()
if p.intelRdtManager != nil {
p.intelRdtManager.Destroy()
}
}
}()
if err := p.createNetworkInterfaces(); err != nil {