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

Lines changed: 1 addition & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy