Fix a memory leak in one of the test unit. Silent coverity warning CID 1095912

llvm-svn: 215898
This commit is contained in:
Sylvestre Ledru 2014-08-18 15:18:56 +00:00
parent 75c2914114
commit b248256089
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}