Do not leak on error (Coverity).
This commit is contained in:
parent
15dda8ada2
commit
aa24ff9e20
@ -629,6 +629,7 @@ namespace {
|
||||
const clang::driver::ArgStringList* CC1Args
|
||||
= GetCC1Arguments(Diags.get(), Compilation.get());
|
||||
if (CC1Args == NULL) {
|
||||
delete Invocation;
|
||||
return 0;
|
||||
}
|
||||
clang::CompilerInvocation::CreateFromArgs(*Invocation, CC1Args->data() + 1,
|
||||
|
Loading…
x
Reference in New Issue
Block a user