mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #23142 from Microsoft/ExtraCleanup
Windows: Remove a double free on hcs container handle
This commit is contained in:
commit
bcf0c8ca28
1 changed files with 0 additions and 3 deletions
|
@ -235,9 +235,6 @@ func (ctr *container) waitExit(process *process, isFirstProcessToStart bool) err
|
||||||
// Remove process from list if we have exited
|
// Remove process from list if we have exited
|
||||||
// We need to do so here in case the Message Handler decides to restart it.
|
// We need to do so here in case the Message Handler decides to restart it.
|
||||||
if si.State == StateExit {
|
if si.State == StateExit {
|
||||||
if err := ctr.hcsContainer.Close(); err != nil {
|
|
||||||
logrus.Error(err)
|
|
||||||
}
|
|
||||||
ctr.client.deleteContainer(ctr.friendlyName)
|
ctr.client.deleteContainer(ctr.friendlyName)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue