summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-10-20 21:22:15 +0000
committerTed Kremenek <kremenek@apple.com>2010-10-20 21:22:15 +0000
commit983fb5de5fb06a23d2c561f6cfcd8dc8fbce0c11 (patch)
treef2a186b1465c6b06d712cce0f5ad2cb7c8933e86
parent7d8fdef78d3214874c299c4adfa3e6cf022565b4 (diff)
downloadbcm5719-llvm-983fb5de5fb06a23d2c561f6cfcd8dc8fbce0c11.tar.gz
bcm5719-llvm-983fb5de5fb06a23d2c561f6cfcd8dc8fbce0c11.zip
Call clang_disposeTokens() when we are done with the set of tokens.
llvm-svn: 116946
-rw-r--r--clang/tools/c-index-test/c-index-test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/tools/c-index-test/c-index-test.c b/clang/tools/c-index-test/c-index-test.c
index 84ceab2e661..32cada08ae5 100644
--- a/clang/tools/c-index-test/c-index-test.c
+++ b/clang/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);
OpenPOWER on IntegriCloud