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
This commit is contained in:
Bjorn Steinbrink 2015-01-28 18:32:31 +00:00
parent 4925c39604
commit dd4a5df6e1
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}