diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-10-20 21:22:15 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-10-20 21:22:15 +0000 |
commit | 93f5e6a5d7690f90bc8a94e6b40d6c7d19719e0c (patch) | |
tree | eabbc7b2b75e4195f8c02c0bb9a19aac661354ef /tools/c-index-test | |
parent | 536bab452fa38692834233187ed3d49b83722cb3 (diff) |
Call clang_disposeTokens() when we are done with the set of tokens.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116946 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/c-index-test')
-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 84ceab2e66..32cada08ae 100644 --- a/tools/c-index-test/c-index-test.c +++ b/tools/c-index-test/c-index-test.c @@ -1234,6 +1234,7 @@ int perform_token_annotation(int argc, const char **argv) { printf("\n"); } free(cursors); + clang_disposeTokens(TU, tokens, num_tokens); teardown: PrintDiagnostics(TU); |