commit | 9ecf716de7c342f1f1575efd375d4cadd8290a92 | [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 | 39be7d09a012a13671986519da8306c9fa8d3665 | |
parent | e04306314ffbfb7e184dd0ff984b5b9a71a2fa4a [diff] |
Fix potential double-free. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51381 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/AST/Stmt.cpp b/lib/AST/Stmt.cpp index b12518f..6d8ebcf 100644 --- a/lib/AST/Stmt.cpp +++ b/lib/AST/Stmt.cpp
@@ -57,7 +57,7 @@ void DeclStmt::Destroy(ASTContext& C) { TheDecl->Destroy(C); - Stmt::Destroy(C); + delete this; } void Stmt::PrintStats() {