We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f0afdc3 + a6cab24 commit c89076bCopy full SHA for c89076b
src/shims/env.rs
@@ -55,7 +55,7 @@ impl<'tcx> EnvVars<'tcx> {
55
ecx.memory.deallocate(ptr, None, MiriMemoryKind::Env.into())?;
56
}
57
// Deallocate environ var list.
58
- let environ = ecx.machine.env_vars.environ.take().unwrap();
+ let environ = ecx.machine.env_vars.environ.unwrap();
59
let old_vars_ptr = ecx.read_scalar(environ.into())?.not_undef()?;
60
ecx.memory.deallocate(ecx.force_ptr(old_vars_ptr)?, None, MiriMemoryKind::Env.into())?;
61
Ok(())
0 commit comments