From c8454394f76865777d4cd013c606d17dcd0f9600 Mon Sep 17 00:00:00 2001 From: Darren Stahl Date: Tue, 31 May 2016 10:25:38 -0700 Subject: [PATCH] Windows: Remove a double free on hcs container handle Signed-off-by: Darren Stahl --- libcontainerd/container_windows.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/libcontainerd/container_windows.go b/libcontainerd/container_windows.go index 467c8ff294..11277b02fc 100644 --- a/libcontainerd/container_windows.go +++ b/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) } }