diff --git a/core/iwasm/aot/aot_loader.c b/core/iwasm/aot/aot_loader.c index a87aee0a72..bed539dafa 100644 --- a/core/iwasm/aot/aot_loader.c +++ b/core/iwasm/aot/aot_loader.c @@ -3997,6 +3997,7 @@ load_from_sections(AOTModule *module, AOTSection *sections, AOTFuncType *func_type; AOTExport *exports; uint8 malloc_free_io_type = VALUE_TYPE_I32; + module->is_binary_freeable = !is_load_from_file_buf; while (section) { buf = section->section_body;