forked from OSchip/llvm-project
Fix a memory leak in one of the test unit. Silent coverity warning CID 1095912
llvm-svn: 215898
This commit is contained in:
parent
75c2914114
commit
b248256089
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue