It doesn't leak, it is refcounted by the compiler instance.
git-svn-id: http://root.cern.ch/svn/root/trunk@46560 27541ba8-7e3a-0410-8455-c3a389f83636
This commit is contained in:
parent
ebe948e9b0
commit
df045c6cf4
@ -152,7 +152,7 @@ namespace cling {
|
||||
return 0;
|
||||
}
|
||||
clang::CompilerInvocation*
|
||||
Invocation = new clang::CompilerInvocation; // LEAKS!
|
||||
Invocation = new clang::CompilerInvocation;
|
||||
clang::CompilerInvocation::CreateFromArgs(*Invocation, CC1Args->data() + 1,
|
||||
CC1Args->data() + CC1Args->size(),
|
||||
*Diagnostics);
|
||||
|
Loading…
x
Reference in New Issue
Block a user