projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c01d39e
)
[MCJIT] Fix a memory leak in a unit test that was introduced in r243589.
author
Lang Hames
<lhames@gmail.com>
Thu, 30 Jul 2015 02:05:37 +0000
(
02:05
+0000)
committer
Lang Hames
<lhames@gmail.com>
Thu, 30 Jul 2015 02:05:37 +0000
(
02:05
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243609
91177308
-0d34-0410-b5e6-
96231b3b80d8
unittests/ExecutionEngine/MCJIT/MCJITCAPITest.cpp
patch
|
blob
|
history
diff --git
a/unittests/ExecutionEngine/MCJIT/MCJITCAPITest.cpp
b/unittests/ExecutionEngine/MCJIT/MCJITCAPITest.cpp
index 16530293270f5d5aca1e94cbc222eb2a20dc67f9..30561b7d49c85253367511faa1979ddf75995ad3 100644
(file)
--- a/
unittests/ExecutionEngine/MCJIT/MCJITCAPITest.cpp
+++ b/
unittests/ExecutionEngine/MCJIT/MCJITCAPITest.cpp
@@
-505,6
+505,7
@@
TEST_F(MCJITCAPITest, addGlobalMapping) {
LLVMPositionBuilderAtEnd(Builder, Entry);
LLVMValueRef RetVal = LLVMBuildCall(Builder, MappedFn, NULL, 0, "");
LLVMBuildRet(Builder, RetVal);
+ LLVMDisposeBuilder(Builder);
LLVMVerifyModule(Module, LLVMAbortProcessAction, &Error);
LLVMDisposeMessage(Error);