diff options
author | Steve Naroff <snaroff@apple.com> | 2009-10-15 22:23:48 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2009-10-15 22:23:48 +0000 |
commit | 44cd60eebec2f4c8152f58c4b16eb20c9e265119 (patch) | |
tree | 5fe7624af9090f3c87e26f4d0762499facb0bb88 /clang/tools/c-index-test/c-index-test.c | |
parent | fb8e47323f54b6cdf037a20c005bc56b9b3d92a2 (diff) | |
download | bcm5719-llvm-44cd60eebec2f4c8152f58c4b16eb20c9e265119.tar.gz bcm5719-llvm-44cd60eebec2f4c8152f58c4b16eb20c9e265119.zip |
Make sure temporary files get unlinked.
llvm-svn: 84208
Diffstat (limited to 'clang/tools/c-index-test/c-index-test.c')
-rw-r--r-- | clang/tools/c-index-test/c-index-test.c | 2 |
1 files changed, 2 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 c514b63d94b..716c15ddecf 100644 --- a/clang/tools/c-index-test/c-index-test.c +++ b/clang/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; } } |