Update mod.rs
This commit is contained in:
parent
a805606d45
commit
8733bd0e7c
@ -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…
x
Reference in New Issue
Block a user