summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2017-11-09 14:51:45 -0500
committerMatthew Heon <matthew.heon@gmail.com>2017-11-18 12:58:48 -0500
commit57300be94d3de0a9710458a3070c064b0d5231d3 (patch)
tree542d4f30a31fef14a7102d421609dce5a408346c /libpod
parent4bc3acc7aa8037becdf892a9b083e133b090e04e (diff)
downloadpodman-57300be94d3de0a9710458a3070c064b0d5231d3.tar.gz
podman-57300be94d3de0a9710458a3070c064b0d5231d3.tar.bz2
podman-57300be94d3de0a9710458a3070c064b0d5231d3.zip
Fix segfault cleaning up in after failing to create a Runtime
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Diffstat (limited to 'libpod')
-rw-r--r--libpod/runtime.go2
1 files changed, 1 insertions, 1 deletions
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)
}