We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3424fc commit bbc8f58Copy full SHA for bbc8f58
1 file changed
src/integrations/shim.rs
@@ -237,8 +237,13 @@ impl ShimSupport {
237
if !installed {
238
bail!("unable to install security hook require for this platform");
239
}
240
- // Retain the shim protocol after load.
241
- Self::retain()?
+ }
+
242
+ // If the shim is loaded, we will need to retain the shim protocol to allow
243
+ // loading multiple images.
244
+ if shim_loaded {
245
+ // Retain the shim protocol after loading the image.
246
+ Self::retain()?;
247
248
249
// Converts the shim input to an owned data buffer.
0 commit comments