we don't deallocate the environ global, so leave it in the machine
This commit is contained in:
parent
f0afdc35d2
commit
a6cab24dc0
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ impl<'tcx> EnvVars<'tcx> {
|
|||
ecx.memory.deallocate(ptr, None, MiriMemoryKind::Env.into())?;
|
||||
}
|
||||
// Deallocate environ var list.
|
||||
let environ = ecx.machine.env_vars.environ.take().unwrap();
|
||||
let environ = ecx.machine.env_vars.environ.unwrap();
|
||||
let old_vars_ptr = ecx.read_scalar(environ.into())?.not_undef()?;
|
||||
ecx.memory.deallocate(ecx.force_ptr(old_vars_ptr)?, None, MiriMemoryKind::Env.into())?;
|
||||
Ok(())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue