Browse code

Merge pull request #23142 from Microsoft/ExtraCleanup

Windows: Remove a double free on hcs container handle

Brian Goff authored on 2016/06/02 00:09:06
Showing 1 changed files
... ...
@@ -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
 	}