From: Argyrios Kyrtzidis Date: Tue, 29 Nov 2011 08:14:50 +0000 (+0000) Subject: [libclang] Fix leak in clang_indexSourceFile_Impl X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7383550585795db4bd5ff635b650f01d374e91aa;p=clang [libclang] Fix leak in clang_indexSourceFile_Impl git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145393 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/libclang/Indexing.cpp b/tools/libclang/Indexing.cpp index 222e301d46..5950455104 100644 --- a/tools/libclang/Indexing.cpp +++ b/tools/libclang/Indexing.cpp @@ -252,7 +252,8 @@ static void clang_indexSourceFile_Impl(void *UserData) { Diags(CompilerInstance::createDiagnostics(DiagOpts, num_command_line_args, command_line_args, CaptureDiag, - /*ShouldOwnClient=*/true)); + /*ShouldOwnClient=*/true, + /*ShouldCloneClient=*/false)); // Recover resources if we crash before exiting this function. llvm::CrashRecoveryContextCleanupRegistrar