message: fix(c-api) UPdate `wasm_functype_new` according to previous commit.
diff: use super::{wasm_externtype_t, wasm_valtype_vec_delete, wasm_valtype_vec_t, WasmExternType};
  +use std::mem;
  use wasmer::{ExternType, FunctionType, ValType};
  #[derive(Debug)]
  @@ -58,8 +59,8 @@ pub unsafe extern "C" fn wasm_functype_new(
  params: Option<Box<wasm_valtype_vec_t>>,
  results: Option<Box<wasm_valtype_vec_t>>,
  ) -> Option<Box<wasm_functype_t>> {
  - let params = params?;
  - let results = results?;
  + let mut params = params?;
  + let mut results = results?;
  let params_as_valtype: Vec<ValType> = params
  .into_slice()?
  @@ -72,8 +73,11 @@ pub unsafe extern "C" fn wasm_functype_new(
  .map(|val| val.as_ref().into())
  .collect::<Vec<_>>();
  - wasm_valtype_vec_delete(Box::into_raw(params));
  - wasm_valtype_vec_delete(Box::into_raw(results));
  + wasm_valtype_vec_delete(Some(params.as_mut()));
  + wasm_valtype_vec_delete(Some(results.as_mut()));
  +
  + mem::forget(params);
  + mem::forget(results);
  Some(Box::new(wasm_functype_t::new(FunctionType::new(
  params_as_valtype,
  