From: Eli Friedman Date: Tue, 27 May 2008 03:08:09 +0000 (+0000) Subject: Stop leaking the TUDecl. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b26153c2b06934b6d39886cae2a379988d9c3e2b;p=clang Stop leaking the TUDecl. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51575 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index 923aab291d..6344ce570c 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -32,6 +32,8 @@ ASTContext::~ASTContext() { Types.back()->Destroy(*this); Types.pop_back(); } + + TUDecl->Destroy(*this); } void ASTContext::PrintStats() const {