diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-11-29 08:14:50 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-11-29 08:14:50 +0000 |
commit | 7383550585795db4bd5ff635b650f01d374e91aa (patch) | |
tree | e137266e9d7a01df28e4ed166f977feb61d04ba4 /tools/libclang/Indexing.cpp | |
parent | 573ea9683113064d8d72b9f6a119a63136860181 (diff) |
[libclang] Fix leak in clang_indexSourceFile_Impl
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145393 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/libclang/Indexing.cpp')
-rw-r--r-- | tools/libclang/Indexing.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<DiagnosticsEngine, |