Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 071371b

Browse files
committed
LLVMJIT: Free created module in LLVM < 5.
Due to the differing APIs between versions, I forgot to deallocate the generated module in older LLVM versions, leading to a memory leak. Author: Andres Freund
1 parent 0976c4d commit 071371b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/backend/jit/llvm/llvmjit.c

+1
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,7 @@ llvm_compile_module(LLVMJitContext *context)
531531
{
532532
orc_handle = LLVMOrcAddEagerlyCompiledIR(compile_orc, context->module,
533533
llvm_resolve_symbol, NULL);
534+
LLVMDisposeModule(context->module);
534535
}
535536
#else
536537
{

0 commit comments

Comments
 (0)