message: chore(runtime-core) Avoid code duplication.
diff: @@ -560,8 +560,10 @@ impl Drop for ImportBacking {
  fn drop(&mut self) {
  // Properly drop the `vm::FuncCtx` in `vm::ImportedFunc`.
  for (_imported_func_index, imported_func) in (*self.vm_functions).iter_mut() {
  - if !imported_func.func_ctx.as_ptr().is_null() {
  - let _: Box<vm::FuncCtx> = unsafe { Box::from_raw(imported_func.func_ctx.as_ptr()) };
  + let func_ctx_ptr = imported_func.func_ctx.as_ptr();
  +
  + if !func_ctx_ptr.is_null() {
  + let _: Box<vm::FuncCtx> = unsafe { Box::from_raw(func_ctx_ptr) };
  }
  }
  }
  