From 8266d7f62019c3366254461cec2275999e69999c Mon Sep 17 00:00:00 2001 From: Sam Bishop Date: Thu, 3 Apr 2008 05:01:04 +0000 Subject: [PATCH] Call "delete" on the body of FunctionDecls. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49135 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AST/Decl.cpp | 1 + 1 file changed, 1 insertion(+) 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 { -- 2.50.1