Skip to content

Commit

Permalink
use wasm_runtime_malloc/wasm_runtime_free
Browse files Browse the repository at this point in the history
  • Loading branch information
yamt committed Aug 14, 2023
1 parent ace562a commit bf05525
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions core/iwasm/compilation/aot_emit_aot_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -1634,6 +1634,7 @@ aot_emit_object_data_section_info(uint8 *buf, uint8 *buf_end, uint32 *p_offset,
EMIT_U32(obj_data->data_sections_count);

for (i = 0; i < obj_data->data_sections_count; i++, data_section++) {
LOG_VERBOSE("Emit data section: %s", data_section->name);
offset = align_uint(offset, 2);
EMIT_STR(data_section->name);
offset = align_uint(offset, 4);
Expand Down
2 changes: 1 addition & 1 deletion product-mini/platforms/posix/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ load_native_lib(const char *name)
if (lib->handle != NULL) {
dlclose(lib->handle);
}
free(lib);
wasm_runtime_free(lib);
}
return NULL;
}
Expand Down

0 comments on commit bf05525

Please sign in to comment.