aboutsummaryrefslogtreecommitdiff
path: root/tools/c-index-test/c-index-test.c
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2009-10-15 22:23:48 +0000
committerSteve Naroff <snaroff@apple.com>2009-10-15 22:23:48 +0000
commite19944c93961b7618f4f3f3185f698f46369ea54 (patch)
treea7341a06516c4e9d218ac2ed9a0452afed31d237 /tools/c-index-test/c-index-test.c
parent8c4195eefb90e7d6c06af57f5c845601d91a749a (diff)
Make sure temporary files get unlinked.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84208 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/c-index-test/c-index-test.c')
-rw-r--r--tools/c-index-test/c-index-test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/c-index-test/c-index-test.c b/tools/c-index-test/c-index-test.c
index c514b63d94..716c15ddec 100644
--- a/tools/c-index-test/c-index-test.c
+++ b/tools/c-index-test/c-index-test.c
@@ -91,6 +91,7 @@ int main(int argc, char **argv) {
if (!strcmp(argv[2], "all")) {
clang_loadTranslationUnit(TU, TranslationUnitVisitor, 0);
+ clang_disposeTranslationUnit(TU);
return 1;
}
/* Perform some simple filtering. */
@@ -101,6 +102,7 @@ int main(int argc, char **argv) {
else if (!strcmp(argv[2], "typedef")) K = CXCursor_TypedefDecl;
clang_loadTranslationUnit(TU, TranslationUnitVisitor, &K);
+ clang_disposeTranslationUnit(TU);
return 1;
}
}