Skip to content

Commit c2fab5a

Browse files
committed
Fix memory leak in unit test
1 parent a46d60a commit c2fab5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/tools/c-index-test/c-index-test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1852,7 +1852,7 @@ static enum CXChildVisitResult PrintBinOps(CXCursor C, CXCursor p,
18521852
bok = clang_Cursor_getBinaryOpcode(C);
18531853
opstr = clang_Cursor_getBinaryOpcodeStr(bok);
18541854
printf(" BinOp=%s %d\n", clang_getCString(opstr), bok);
1855-
1855+
clang_disposeString(opstr);
18561856
return CXChildVisit_Recurse;
18571857
}
18581858

0 commit comments

Comments
 (0)