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