[cfe-commits] r145393 - /cfe/trunk/tools/libclang/Indexing.cpp
Argyrios Kyrtzidis
akyrtzi at gmail.com
Tue Nov 29 00:14:50 PST 2011
Author: akirtzidis
Date: Tue Nov 29 02:14:50 2011
New Revision: 145393
URL: http://llvm.org/viewvc/llvm-project?rev=145393&view=rev
Log:
[libclang] Fix leak in clang_indexSourceFile_Impl
Modified:
cfe/trunk/tools/libclang/Indexing.cpp
Modified: cfe/trunk/tools/libclang/Indexing.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/Indexing.cpp?rev=145393&r1=145392&r2=145393&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/Indexing.cpp (original)
+++ cfe/trunk/tools/libclang/Indexing.cpp Tue Nov 29 02:14:50 2011
@@ -252,7 +252,8 @@
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<DiagnosticsEngine,
More information about the cfe-commits
mailing list