From 57300be94d3de0a9710458a3070c064b0d5231d3 Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Thu, 9 Nov 2017 14:51:45 -0500 Subject: Fix segfault cleaning up in after failing to create a Runtime Signed-off-by: Matthew Heon --- libpod/runtime.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libpod/runtime.go b/libpod/runtime.go index 1bfb79947..39b3677a2 100644 --- a/libpod/runtime.go +++ b/libpod/runtime.go @@ -97,7 +97,7 @@ func NewRuntime(options ...RuntimeOption) (runtime *Runtime, err error) { if err != nil { // Don't forcibly shut down // We could be opening a store in use by another libpod - _, err2 := runtime.store.Shutdown(false) + _, err2 := store.Shutdown(false) if err2 != nil { logrus.Errorf("Error removing store for partially-created runtime: %s", err2) } -- cgit v1.2.3-54-g00ecf