]> granicus.if.org Git - clang/commitdiff
BlockDecl::Destroy now deallocates BlockDecl's array of ParmVarDecl*.
authorTed Kremenek <kremenek@apple.com>
Fri, 13 Mar 2009 23:17:24 +0000 (23:17 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 13 Mar 2009 23:17:24 +0000 (23:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66979 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/Decl.cpp

index bd16331c1b0c08d065e2cf402e6a3f2d2089e8a9..19212a3e813ebcc11de48bda3dfa47c914980532 100644 (file)
@@ -511,7 +511,8 @@ void BlockDecl::Destroy(ASTContext& C) {
 
   for (param_iterator I=param_begin(), E=param_end(); I!=E; ++I)
     (*I)->Destroy(C);
-    
+  
+  C.Deallocate(ParamInfo);    
   Decl::Destroy(C);
 }