wasmer icon indicating copy to clipboard operation
wasmer copied to clipboard

How should i release the imported function with env

Open newNcy opened this issue 8 months ago • 0 comments

Summary

delete the host func with a env ptr will cause a double release in c-api

Additional details

when calling the wasm_instance_new will clone the imported functions into resolver, the env is the same ptr. when call wasm_funct_delete/wasm_instance_delete will call the env finalizer twice , what should i do?

newNcy avatar Jun 17 '24 08:06 newNcy