[cfe-commits] r154738 - /cfe/trunk/tools/c-index-test/c-index-test.c
Benjamin Kramer
benny.kra at googlemail.com
Sat Apr 14 02:11:51 PDT 2012
Author: d0k
Date: Sat Apr 14 04:11:51 2012
New Revision: 154738
URL: http://llvm.org/viewvc/llvm-project?rev=154738&view=rev
Log:
c-index-test: dispose spelling string after use.
Modified:
cfe/trunk/tools/c-index-test/c-index-test.c
Modified: cfe/trunk/tools/c-index-test/c-index-test.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/c-index-test/c-index-test.c?rev=154738&r1=154737&r2=154738&view=diff
==============================================================================
--- cfe/trunk/tools/c-index-test/c-index-test.c (original)
+++ cfe/trunk/tools/c-index-test/c-index-test.c Sat Apr 14 04:11:51 2012
@@ -2243,6 +2243,7 @@
clang_getSpellingLocation(clang_getRangeEnd(extent),
0, &end_line, &end_column, 0);
printf("%s: \"%s\" ", kind, clang_getCString(spelling));
+ clang_disposeString(spelling);
PrintExtent(stdout, start_line, start_column, end_line, end_column);
if (!clang_isInvalid(cursors[i].kind)) {
printf(" ");
More information about the cfe-commits
mailing list