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

Commit

Permalink
runtime: Call s.newStore.Destroy if globalSandboxList.addSandbox
Browse files Browse the repository at this point in the history
Fixes: 2919
Signed-off-by: Shukui Yang <[email protected]>
  • Loading branch information
keloyang committed Sep 9, 2020
1 parent 7840ed8 commit 0b7019b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions virtcontainers/sandbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,7 @@ func newSandbox(ctx context.Context, sandboxConfig SandboxConfig, factory Factor
}

if err = globalSandboxList.addSandbox(s); err != nil {
s.newStore.Destroy(s.id)
return nil, err
}

Expand Down

0 comments on commit 0b7019b

Please sign in to comment.