Add more checks for wasm-c-api interfaces (#1121)
Protect c-api from unlinked runtime objects Fix a potential memory leak Remove unused `imports` in `wasm_instance_t`
This commit is contained in:
@ -1309,7 +1309,7 @@ wasm_runtime_finalize_call_function(WASMExecEnv *exec_env,
|
||||
|
||||
bh_assert((argv && ret_argv) || (argc == 0));
|
||||
|
||||
if (argv == ret_argv || argc == 0) {
|
||||
if (argv == ret_argv) {
|
||||
/* no need to transfrom externref results */
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user