mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
Avoid duplicate calls to runner#destroy
Signed-off-by: Ted Yu <yuzhihong@gmail.com>
This commit is contained in:
+3
-1
@@ -349,7 +349,9 @@ func (r *runner) run(config *specs.Process) (int, error) {
|
||||
if detach {
|
||||
return 0, nil
|
||||
}
|
||||
r.destroy()
|
||||
if err == nil {
|
||||
r.destroy()
|
||||
}
|
||||
return status, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user