[cfe-commits] r116946 - /cfe/trunk/tools/c-index-test/c-index-test.c

Ted Kremenek kremenek at apple.com
Wed Oct 20 14:22:15 PDT 2010


Author: kremenek
Date: Wed Oct 20 16:22:15 2010
New Revision: 116946

URL: http://llvm.org/viewvc/llvm-project?rev=116946&view=rev
Log:
Call clang_disposeTokens() when we are done with the set of tokens.

Modified:
    cfe/trunk/tools/c-index-test/c-index-test.c

Modified: cfe/trunk/tools/c-index-test/c-index-test.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/c-index-test/c-index-test.c?rev=116946&r1=116945&r2=116946&view=diff
==============================================================================
--- cfe/trunk/tools/c-index-test/c-index-test.c (original)
+++ cfe/trunk/tools/c-index-test/c-index-test.c Wed Oct 20 16:22:15 2010
@@ -1234,6 +1234,7 @@
     printf("\n");
   }
   free(cursors);
+  clang_disposeTokens(TU, tokens, num_tokens);
 
  teardown:
   PrintDiagnostics(TU);





More information about the cfe-commits mailing list