Call clang_disposeTokens() when we are done with the set of tokens.

llvm-svn: 116946
This commit is contained in:
Ted Kremenek
2010-10-20 21:22:15 +00:00
parent 7d8fdef78d
commit 983fb5de5f

View File

@@ -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);