Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit071371b

Browse files
committed
LLVMJIT: Free created module in LLVM < 5.
Due to the differing APIs between versions, I forgot to deallocate thegenerated module in older LLVM versions, leading to a memory leak.Author: Andres Freund
1 parent0976c4d commit071371b

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)

[8]ページ先頭

©2009-2025 Movatter.jp