From: Sam Bishop Date: Thu, 3 Apr 2008 05:01:04 +0000 (+0000) Subject: Call "delete" on the body of FunctionDecls. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8266d7f62019c3366254461cec2275999e69999c;p=clang Call "delete" on the body of FunctionDecls. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49135 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/Decl.cpp b/lib/AST/Decl.cpp index 4c8f6b86b7..3e7d83826e 100644 --- a/lib/AST/Decl.cpp +++ b/lib/AST/Decl.cpp @@ -357,6 +357,7 @@ bool ScopedDecl::isDefinedOutsideFunctionOrMethod() const { FunctionDecl::~FunctionDecl() { delete[] ParamInfo; + delete Body; } unsigned FunctionDecl::getNumParams() const {