From d670ca4414733f53878efd946cb52844988538da Mon Sep 17 00:00:00 2001 From: James Marsh Date: Mon, 1 Sep 2025 20:10:07 +0100 Subject: [PATCH] Set is_binary_freeable in load_from_sections --- core/iwasm/aot/aot_loader.c | 1 + 1 file changed, 1 insertion(+) 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;