Delete late parsed attributes instead of leaking them.

llvm-svn: 154746
This commit is contained in:
Benjamin Kramer 2012-04-14 12:44:47 +00:00
parent 6fc461984a
commit bafc49a89c
1 changed files with 1 additions and 0 deletions

View File

@ -756,6 +756,7 @@ void Parser::ParseLexedAttributeList(LateParsedAttrList &LAs, Decl *D,
for (unsigned i = 0, ni = LAs.size(); i < ni; ++i) {
LAs[i]->addDecl(D);
ParseLexedAttribute(*LAs[i], EnterScope, OnDefinition);
delete LAs[i];
}
LAs.clear();
}