From: Ted Kremenek Date: Wed, 20 Oct 2010 21:22:15 +0000 (+0000) Subject: Call clang_disposeTokens() when we are done with the set of tokens. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=93f5e6a5d7690f90bc8a94e6b40d6c7d19719e0c;p=clang 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 --- 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);