diff options
author | Bjorn Steinbrink <bsteinbr@gmail.com> | 2015-01-28 18:32:31 +0000 |
---|---|---|
committer | Bjorn Steinbrink <bsteinbr@gmail.com> | 2015-01-28 18:32:31 +0000 |
commit | dd4a5df6e1e2b17a0f8963674bea6e94cc6c9b0e (patch) | |
tree | 910ebd3b0497c6056683be55c4632bdb75835194 /tools | |
parent | 4925c396043f5dde2b787d011ddffeddcca92353 (diff) |
Fix build breakage caused by memory leaks in llvm-c-test
I accidently introduced those in r227319.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227339 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/llvm-c-test/metadata.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/llvm-c-test/metadata.c b/tools/llvm-c-test/metadata.c index ee5b33c9122..b64a696c528 100644 --- a/tools/llvm-c-test/metadata.c +++ b/tools/llvm-c-test/metadata.c @@ -22,6 +22,8 @@ int add_named_metadata_operand(void) { // This used to trigger an assertion LLVMAddNamedMetadataOperand(m, "name", LLVMMDNode(values, 1)); + LLVMDisposeModule(m); + return 0; } @@ -35,5 +37,7 @@ int set_metadata(void) { LLVMGetMDKindID("kind", 4), LLVMMDNode(values, 1)); + LLVMDisposeBuilder(b); + return 0; } |