wasm-micro-runtime
wasm-micro-runtime copied to clipboard
Allow not copying the wasm binary into the module when using WASM C API
The wasm_module_new
function copies the WASM binary passed as an argument into the module.
This PR allows passing an additional flag to wasm_module_new_ex
, to avoid that copy. In that way, the binary can be manually released after module instantiation (instead of having to wait for the store to be destroyed).