mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
Fix build breakage caused by memory leaks in llvm-c-test
I accidently introduced those in r227319. llvm-svn: 227339
This commit is contained in:
parent
159f2e1618
commit
132e30a62b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user