diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-11-13 03:02:57 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-11-13 03:02:57 +0000 |
commit | da00234109e06a8460b3128687932d420e6840ea (patch) | |
tree | 3a302b31bc39819436e2fc509e0ac7cb94463336 /clang/lib/Frontend/HTMLDiagnostics.cpp | |
parent | fa81808a11310e895a52ee375229689f47bbed01 (diff) | |
download | bcm5719-llvm-da00234109e06a8460b3128687932d420e6840ea.tar.gz bcm5719-llvm-da00234109e06a8460b3128687932d420e6840ea.zip |
Fix recently introduced use-after-free error reported in <rdar://problem/7387478>.
llvm-svn: 87072
Diffstat (limited to 'clang/lib/Frontend/HTMLDiagnostics.cpp')
-rw-r--r-- | clang/lib/Frontend/HTMLDiagnostics.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Frontend/HTMLDiagnostics.cpp b/clang/lib/Frontend/HTMLDiagnostics.cpp index 145d53f3fc6..3ba7abf3816 100644 --- a/clang/lib/Frontend/HTMLDiagnostics.cpp +++ b/clang/lib/Frontend/HTMLDiagnostics.cpp @@ -109,6 +109,8 @@ HTMLDiagnostics::FlushDiagnostics(llvm::SmallVectorImpl<std::string> *FilesMade) ReportDiag(*D, FilesMade); delete D; } + + BatchedDiags.clear(); } void HTMLDiagnostics::ReportDiag(const PathDiagnostic& D, |