mirror of
https://github.com/containers/podman
synced 2024-10-21 01:34:37 +00:00
Fix segfault cleaning up in after failing to create a Runtime
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
This commit is contained in:
parent
4bc3acc7aa
commit
57300be94d
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue