Skip to content

Commit

Permalink
wasm3: add workaround for failure case
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Jun 30, 2020
1 parent 26a263a commit d742d39
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/utils/wasm3_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ bool Wasm3Engine::instantiate(bytes_view wasm_binary)
if (m3_LoadModule(m_runtime, module) != m3Err_none)
{
m3_FreeModule(module);
// NOTE: it seems this is needed, but likely is a bug...
m_runtime = nullptr;
return false;
}

Expand Down

0 comments on commit d742d39

Please sign in to comment.