diff --git a/ykrt/src/mt.rs b/ykrt/src/mt.rs index 7e09fb30f..e7db51c76 100644 --- a/ykrt/src/mt.rs +++ b/ykrt/src/mt.rs @@ -299,7 +299,7 @@ impl MTThread { let bct = unsafe { Box::from_raw(ptr as *mut CompiledTrace) }; let tptr = bct.ptr(); let func: fn(&mut I) -> bool = unsafe { mem::transmute(tptr) }; - let _raw = Box::into_raw(bct); + mem::forget(bct); return Some(func); } _ => unreachable!(),