[cfe-commits] r51381 - /cfe/trunk/lib/AST/Stmt.cpp
Ted Kremenek
kremenek at apple.com
Wed May 21 09:00:02 PDT 2008
Author: kremenek
Date: Wed May 21 11:00:02 2008
New Revision: 51381
URL: http://llvm.org/viewvc/llvm-project?rev=51381&view=rev
Log:
Fix potential double-free.
Modified:
cfe/trunk/lib/AST/Stmt.cpp
Modified: cfe/trunk/lib/AST/Stmt.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Stmt.cpp?rev=51381&r1=51380&r2=51381&view=diff
==============================================================================
--- cfe/trunk/lib/AST/Stmt.cpp (original)
+++ cfe/trunk/lib/AST/Stmt.cpp Wed May 21 11:00:02 2008
@@ -57,7 +57,7 @@
void DeclStmt::Destroy(ASTContext& C) {
TheDecl->Destroy(C);
- Stmt::Destroy(C);
+ delete this;
}
void Stmt::PrintStats() {
More information about the cfe-commits
mailing list