Windows: Remove a double free on hcs container handle
| ... | ... |
@@ -235,9 +235,6 @@ func (ctr *container) waitExit(process *process, isFirstProcessToStart bool) err |
| 235 | 235 |
// Remove process from list if we have exited |
| 236 | 236 |
// We need to do so here in case the Message Handler decides to restart it. |
| 237 | 237 |
if si.State == StateExit {
|
| 238 |
- if err := ctr.hcsContainer.Close(); err != nil {
|
|
| 239 |
- logrus.Error(err) |
|
| 240 |
- } |
|
| 241 | 238 |
ctr.client.deleteContainer(ctr.friendlyName) |
| 242 | 239 |
} |
| 243 | 240 |
} |