Remove unused block_addr_cache buffer in wasm loader (#493)

And fix possible memory leak issue in aot loader when apply relocation failed.

Signed-off-by: Wenyong Huang <wenyong.huang@intel.com>
This commit is contained in:
Wenyong Huang
2021-01-08 05:11:12 -06:00
committed by GitHub
parent 788cbf2a19
commit 8a477786f1
2 changed files with 3 additions and 17 deletions

View File

@ -1584,11 +1584,11 @@ load_relocation_section(const uint8 *buf, const uint8 *buf_end,
#endif
) {
if (!do_text_relocation(module, group, error_buf, error_buf_size))
return false;
goto fail;
}
else {
if (!do_data_relocation(module, group, error_buf, error_buf_size))
return false;
goto fail;
}
}