commit | f025a8bc1c78b7a56c9fb2589305ec6dc8f4e331 | [log] [tgz] |
---|---|---|
author | Ted Kremenek <kremenek@apple.com> | Wed May 21 16:00:02 2008 +0000 |
committer | Ted Kremenek <kremenek@apple.com> | Wed May 21 16:00:02 2008 +0000 |
tree | d52d6da90ae84b9b2ea9cf176dd397fcce9530bb | |
parent | e181c13593f37823c9ed3128a202752f582d8615 [diff] [blame] |
Fix potential double-free. llvm-svn: 51381
diff --git a/clang/lib/AST/Stmt.cpp b/clang/lib/AST/Stmt.cpp index b12518f..6d8ebcf 100644 --- a/clang/lib/AST/Stmt.cpp +++ b/clang/lib/AST/Stmt.cpp
@@ -57,7 +57,7 @@ void DeclStmt::Destroy(ASTContext& C) { TheDecl->Destroy(C); - Stmt::Destroy(C); + delete this; } void Stmt::PrintStats() {