Browse code

Windows: Remove a double free on hcs container handle

Signed-off-by: Darren Stahl <darst@microsoft.com>

Darren Stahl authored on 2016/06/01 02:25:38
Showing 1 changed files
... ...
@@ -230,9 +230,6 @@ func (ctr *container) waitExit(process *process, isFirstProcessToStart bool) err
230 230
 		// Remove process from list if we have exited
231 231
 		// We need to do so here in case the Message Handler decides to restart it.
232 232
 		if si.State == StateExit {
233
-			if err := ctr.hcsContainer.Close(); err != nil {
234
-				logrus.Error(err)
235
-			}
236 233
 			ctr.client.deleteContainer(ctr.friendlyName)
237 234
 		}
238 235
 	}