Skip to content

Commit f01fb82

Browse files
committed
Call initStore() at the beginning of load()
Signed-off-by: Rachel Green <[email protected]>
1 parent d0b4394 commit f01fb82

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/wasmedge/wasmedge.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ class WasmEdge : public WasmVm {
302302

303303
bool WasmEdge::load(std::string_view bytecode, std::string_view /*precompiled*/,
304304
const std::unordered_map<uint32_t, std::string> & /*function_names*/) {
305+
initStore();
305306
WasmEdge_ASTModuleContext *mod = nullptr;
306307
WasmEdge_Result res = WasmEdge_LoaderParseFromBuffer(
307308
loader_.get(), &mod, reinterpret_cast<const uint8_t *>(bytecode.data()), bytecode.size());

0 commit comments

Comments
 (0)