Ver código fonte

Windows: Remove a double free on hcs container handle

Signed-off-by: Darren Stahl <darst@microsoft.com>
Darren Stahl 9 anos atrás
pai
commit
c8454394f7
1 arquivos alterados com 0 adições e 3 exclusões
  1. 0 3
      libcontainerd/container_windows.go

+ 0 - 3
libcontainerd/container_windows.go

@@ -230,9 +230,6 @@ func (ctr *container) waitExit(process *process, isFirstProcessToStart bool) err
 		// Remove process from list if we have exited
 		// We need to do so here in case the Message Handler decides to restart it.
 		if si.State == StateExit {
-			if err := ctr.hcsContainer.Close(); err != nil {
-				logrus.Error(err)
-			}
 			ctr.client.deleteContainer(ctr.friendlyName)
 		}
 	}