From: Sylvestre Ledru Date: Mon, 18 Aug 2014 15:18:56 +0000 (+0000) Subject: Fix a memory leak in one of the test unit. Silent coverity warning CID 1095912 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=25d2ffa8158148ab322117df04bedad48694acbf;p=clang Fix a memory leak in one of the test unit. Silent coverity warning CID 1095912 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@215898 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/c-index-test/c-index-test.c b/tools/c-index-test/c-index-test.c index 08cf69b6f6..d7c28ddb1e 100644 --- a/tools/c-index-test/c-index-test.c +++ b/tools/c-index-test/c-index-test.c @@ -1643,6 +1643,7 @@ static int perform_file_scan(const char *ast_file, const char *source_file, if ((fp = fopen(source_file, "r")) == NULL) { fprintf(stderr, "Could not open '%s'\n", source_file); + clang_disposeTranslationUnit(TU); return 1; }