diff options
| author | Sam Bishop <sam@bishop.dhs.org> | 2008-04-03 05:01:04 +0000 |
|---|---|---|
| committer | Sam Bishop <sam@bishop.dhs.org> | 2008-04-03 05:01:04 +0000 |
| commit | ca6226628ed48e81932d16634ad98a1a5b4ce744 (patch) | |
| tree | a469fcee0e396260b43137c474349523495ac67e | |
| parent | 4e9cc3f272dc0e75642a9720440614d35016c522 (diff) | |
| download | bcm5719-llvm-ca6226628ed48e81932d16634ad98a1a5b4ce744.tar.gz bcm5719-llvm-ca6226628ed48e81932d16634ad98a1a5b4ce744.zip | |
Call "delete" on the body of FunctionDecls.
llvm-svn: 49135
| -rw-r--r-- | clang/lib/AST/Decl.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/AST/Decl.cpp b/clang/lib/AST/Decl.cpp index 4c8f6b86b7c..3e7d83826eb 100644 --- a/clang/lib/AST/Decl.cpp +++ b/clang/lib/AST/Decl.cpp @@ -357,6 +357,7 @@ bool ScopedDecl::isDefinedOutsideFunctionOrMethod() const { FunctionDecl::~FunctionDecl() { delete[] ParamInfo; + delete Body; } unsigned FunctionDecl::getNumParams() const { |

