Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

Commit eb34521

Browse files
authored
Merge pull request #2940 from keloyang/destroy-stable-1.11
runtime: Call s.newStore.Destroy if globalSandboxList.addSandbox
2 parents 15305b8 + 0b7019b commit eb34521

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

virtcontainers/sandbox.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,7 @@ func newSandbox(ctx context.Context, sandboxConfig SandboxConfig, factory Factor
545545
}
546546

547547
if err = globalSandboxList.addSandbox(s); err != nil {
548+
s.newStore.Destroy(s.id)
548549
return nil, err
549550
}
550551

0 commit comments

Comments
 (0)