Skip to content

Commit 5985620

Browse files
committed
[llvm-c] Fix memory leak in test
1 parent 36be0bb commit 5985620

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/tools/llvm-c-test/debuginfo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,9 +446,9 @@ int llvm_add_globaldebuginfo(void) {
446446
size_t numEntries;
447447
LLVMValueMetadataEntry *ME = LLVMGlobalCopyAllMetadata(Global, &numEntries);
448448
assert(ME != NULL);
449-
(void)ME;
450449
assert(numEntries == 2);
451450

451+
LLVMDisposeValueMetadataEntries(ME);
452452
LLVMDisposeDIBuilder(Builder);
453453
LLVMDisposeModule(M);
454454

0 commit comments

Comments
 (0)