[cfe-commits] r87072 - in /cfe/trunk/lib/Frontend: HTMLDiagnostics.cpp PlistDiagnostics.cpp
Ted Kremenek
kremenek at apple.com
Thu Nov 12 19:02:57 PST 2009
Author: kremenek
Date: Thu Nov 12 21:02:57 2009
New Revision: 87072
URL: http://llvm.org/viewvc/llvm-project?rev=87072&view=rev
Log:
Fix recently introduced use-after-free error reported in <rdar://problem/7387478>.
Modified:
cfe/trunk/lib/Frontend/HTMLDiagnostics.cpp
cfe/trunk/lib/Frontend/PlistDiagnostics.cpp
Modified: cfe/trunk/lib/Frontend/HTMLDiagnostics.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/HTMLDiagnostics.cpp?rev=87072&r1=87071&r2=87072&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/HTMLDiagnostics.cpp (original)
+++ cfe/trunk/lib/Frontend/HTMLDiagnostics.cpp Thu Nov 12 21:02:57 2009
@@ -109,6 +109,8 @@
ReportDiag(*D, FilesMade);
delete D;
}
+
+ BatchedDiags.clear();
}
void HTMLDiagnostics::ReportDiag(const PathDiagnostic& D,
Modified: cfe/trunk/lib/Frontend/PlistDiagnostics.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/PlistDiagnostics.cpp?rev=87072&r1=87071&r2=87072&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/PlistDiagnostics.cpp (original)
+++ cfe/trunk/lib/Frontend/PlistDiagnostics.cpp Thu Nov 12 21:02:57 2009
@@ -423,4 +423,6 @@
if (FilesMade)
FilesMade->push_back(OutputFile);
+
+ BatchedDiags.clear();
}
More information about the cfe-commits
mailing list