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

Commit

Permalink
Merge pull request #2940 from keloyang/destroy-stable-1.11
Browse files Browse the repository at this point in the history
runtime: Call s.newStore.Destroy if globalSandboxList.addSandbox
  • Loading branch information
amshinde authored Nov 9, 2020
2 parents 15305b8 + 0b7019b commit eb34521
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 @@ -545,6 +545,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 eb34521

Please sign in to comment.