]> granicus.if.org Git - clang/commitdiff
Call "delete" on the body of FunctionDecls.
authorSam Bishop <sam@bishop.dhs.org>
Thu, 3 Apr 2008 05:01:04 +0000 (05:01 +0000)
committerSam Bishop <sam@bishop.dhs.org>
Thu, 3 Apr 2008 05:01:04 +0000 (05:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49135 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/Decl.cpp

index 4c8f6b86b7c916845a1fc2705e8d83bf108b872a..3e7d83826eb2aec83a4e162c4c910ae8d8646493 100644 (file)
@@ -357,6 +357,7 @@ bool ScopedDecl::isDefinedOutsideFunctionOrMethod() const {
 
 FunctionDecl::~FunctionDecl() {
   delete[] ParamInfo;
+  delete Body;
 }
 
 unsigned FunctionDecl::getNumParams() const {