commit | 936ff132a9aba1f1bb5d72a5744da1e10ce269d2 | [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 | 6cc189648ade1d1c838f6bf22ffa0016d56393d3 [diff] [blame] |
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() {