Update mod.rs
This commit is contained in:
parent
a805606d45
commit
8733bd0e7c
1 changed files with 1 additions and 1 deletions
|
@ -572,7 +572,7 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
|
|||
|
||||
"free" => {
|
||||
let ptr = args[0].read_ptr(&self.memory)?;
|
||||
if !ptr.is_null() {
|
||||
if !ptr.is_null()? {
|
||||
self.memory.deallocate(ptr.to_ptr()?)?;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue