Content-Length: 255171 | pFad | http://github.com/postgrespro/postgres_cluster/commit/071371bc43c89d6db923a7f858933f655b150655

16 LLVMJIT: Free created module in LLVM < 5. · postgrespro/postgres_cluster@071371b · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/071371bc43c89d6db923a7f858933f655b150655

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy