llvm-project/clang/tools/c-index-test
Nico Weber 3fddae75c7 Don't leak CXStrings for replacement fix-its in c-index-test.
The loop body used to contain a switch statement; it looks like r96685 replaced
that with an if/else if/else but accidentally left one of the three break
statements from the switch behind, skipping the clang_disposeString() call
for replacements (and the rest of the loop too, which apparently doesn't make
a differences for the test cases we have).

r96685: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20100215/027754.html

This too might possibly the last leak in clang (PR19521).

llvm-svn: 208483
2014-05-10 23:56:43 +00:00
..
CMakeLists.txt Use -std=gnu89 in tools/c-index-test/CMakeLists.txt 2014-01-08 11:44:42 +00:00
Makefile {c-index-test|c-arcmt-test}/Makefile: Update USEDLIBS along corresponding to clangIndex. 2013-08-18 03:48:57 +00:00
c-index-test.c Don't leak CXStrings for replacement fix-its in c-index-test. 2014-05-10 23:56:43 +00:00