Merge pull request #852 from hqhq/fix_libcontainer_readme

README: Destroy container before fatal
This commit is contained in:
Aleksa Sarai 2016-06-01 08:10:05 +10:00
commit 9dcacfb835
1 changed files with 1 additions and 1 deletions

View File

@ -186,8 +186,8 @@ process := &libcontainer.Process{
err := container.Start(process) err := container.Start(process)
if err != nil { if err != nil {
logrus.Fatal(err)
container.Destroy() container.Destroy()
logrus.Fatal(err)
return return
} }