mirror of
				https://github.com/bytecodealliance/wasm-micro-runtime.git
				synced 2025-10-30 21:02:27 +00:00 
			
		
		
		
	fix: add dispose of the debug information builder when destroying compilation context (#4105)
Co-authored-by: xiangjia.xj <xiangjia.xj@alibaba-inc.com>
This commit is contained in:
		
							parent
							
								
									3f268e5150
								
							
						
					
					
						commit
						968b7d4ea0
					
				|  | @ -3334,6 +3334,11 @@ aot_destroy_comp_context(AOTCompContext *comp_ctx) | |||
|     if (comp_ctx->builder) | ||||
|         LLVMDisposeBuilder(comp_ctx->builder); | ||||
| 
 | ||||
| #if WASM_ENABLE_DEBUG_AOT != 0 | ||||
|     if (comp_ctx->debug_builder) | ||||
|         LLVMDisposeDIBuilder(comp_ctx->debug_builder); | ||||
| #endif | ||||
| 
 | ||||
|     if (comp_ctx->orc_thread_safe_context) | ||||
|         LLVMOrcDisposeThreadSafeContext(comp_ctx->orc_thread_safe_context); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 jia xiang
						jia xiang