[cfe-commits] r154746 - /cfe/trunk/lib/Parse/ParseDecl.cpp
Benjamin Kramer
benny.kra at googlemail.com
Sat Apr 14 05:44:47 PDT 2012
Author: d0k
Date: Sat Apr 14 07:44:47 2012
New Revision: 154746
URL: http://llvm.org/viewvc/llvm-project?rev=154746&view=rev
Log:
Delete late parsed attributes instead of leaking them.
Modified:
cfe/trunk/lib/Parse/ParseDecl.cpp
Modified: cfe/trunk/lib/Parse/ParseDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseDecl.cpp?rev=154746&r1=154745&r2=154746&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/ParseDecl.cpp (original)
+++ cfe/trunk/lib/Parse/ParseDecl.cpp Sat Apr 14 07:44:47 2012
@@ -756,6 +756,7 @@
for (unsigned i = 0, ni = LAs.size(); i < ni; ++i) {
LAs[i]->addDecl(D);
ParseLexedAttribute(*LAs[i], EnterScope, OnDefinition);
+ delete LAs[i];
}
LAs.clear();
}
More information about the cfe-commits
mailing list