mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-12 12:29:11 +00:00
Merge pull request #9598 from lifupan/main_shim
runtime-rs: fix the issue of the leak of dead shim
This commit is contained in:
@@ -128,13 +128,16 @@ impl RuntimeHandlerManagerInner {
|
||||
}
|
||||
}
|
||||
|
||||
let instance = Arc::new(runtime_instance);
|
||||
self.runtime_instance = Some(instance.clone());
|
||||
|
||||
// start sandbox
|
||||
runtime_instance
|
||||
instance
|
||||
.sandbox
|
||||
.start(dns, spec, state, network_env)
|
||||
.await
|
||||
.context("start sandbox")?;
|
||||
self.runtime_instance = Some(Arc::new(runtime_instance));
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user