Skip to content

Commit 968b7d4

Browse files
Jiax-cnxiangjia.xj
andauthored
fix: add dispose of the debug information builder when destroying compilation context (#4105)
Co-authored-by: xiangjia.xj <xiangjia.xj@alibaba-inc.com>
1 parent 3f268e5 commit 968b7d4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/iwasm/compilation/aot_llvm.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3334,6 +3334,11 @@ aot_destroy_comp_context(AOTCompContext *comp_ctx)
33343334
if (comp_ctx->builder)
33353335
LLVMDisposeBuilder(comp_ctx->builder);
33363336

3337+
#if WASM_ENABLE_DEBUG_AOT != 0
3338+
if (comp_ctx->debug_builder)
3339+
LLVMDisposeDIBuilder(comp_ctx->debug_builder);
3340+
#endif
3341+
33373342
if (comp_ctx->orc_thread_safe_context)
33383343
LLVMOrcDisposeThreadSafeContext(comp_ctx->orc_thread_safe_context);
33393344

0 commit comments

Comments
 (0)