Fix issues reported by Coverity (#1775)

Fix some issues reported by Coverity and fix windows exception
check with guard page issue
This commit is contained in:
Wenyong Huang
2022-12-01 19:24:13 +08:00
committed by GitHub
parent 6eaf779a2d
commit 1652f22a77
5 changed files with 45 additions and 35 deletions

View File

@ -5125,10 +5125,11 @@ copy_params_to_dynamic_space(WASMLoaderContext *loader_ctx, bool is_if_block,
/* Free the emit data */
wasm_runtime_free(emit_data);
return true;
fail:
/* Free the emit data */
wasm_runtime_free(emit_data);
return false;
}
#endif