diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-04-14 09:11:51 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-04-14 09:11:51 +0000 |
commit | 342742adb69af8ef8f2c652f162496b98c45bc20 (patch) | |
tree | 4f742004d436169c473cfa9582513536bd5f6a20 /tools | |
parent | 34f9dc46d3207f3d6e649082e61f7ec0226632da (diff) |
c-index-test: dispose spelling string after use.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154738 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/c-index-test/c-index-test.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/c-index-test/c-index-test.c b/tools/c-index-test/c-index-test.c index 573e6dc314..eb2a4063e7 100644 --- a/tools/c-index-test/c-index-test.c +++ b/tools/c-index-test/c-index-test.c @@ -2243,6 +2243,7 @@ int perform_token_annotation(int argc, const char **argv) { 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(" "); |