[llvm-branch-commits] [cfe-branch] r118566 - /cfe/branches/Apple/whitney/lib/Sema/SemaLookup.cpp
Daniel Dunbar
daniel at zuster.org
Tue Nov 9 09:32:10 PST 2010
Author: ddunbar
Date: Tue Nov 9 11:32:10 2010
New Revision: 118566
URL: http://llvm.org/viewvc/llvm-project?rev=118566&view=rev
Log:
Merge r118371:
--
Author: Ted Kremenek <kremenek at apple.com>
Date: Sun Nov 7 06:11:33 2010 +0000
Fix memory leak of IdentifierIterator object.
Modified:
cfe/branches/Apple/whitney/lib/Sema/SemaLookup.cpp
Modified: cfe/branches/Apple/whitney/lib/Sema/SemaLookup.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/whitney/lib/Sema/SemaLookup.cpp?rev=118566&r1=118565&r2=118566&view=diff
==============================================================================
--- cfe/branches/Apple/whitney/lib/Sema/SemaLookup.cpp (original)
+++ cfe/branches/Apple/whitney/lib/Sema/SemaLookup.cpp Tue Nov 9 11:32:10 2010
@@ -3000,7 +3000,7 @@
// Walk through identifiers in external identifier sources.
if (IdentifierInfoLookup *External
= Context.Idents.getExternalIdentifierLookup()) {
- IdentifierIterator *Iter = External->getIdentifiers();
+ llvm::OwningPtr<IdentifierIterator> Iter(External->getIdentifiers());
do {
llvm::StringRef Name = Iter->Next();
if (Name.empty())
More information about the llvm-branch-commits
mailing list