r220569 - [Modules] Free modules that failed signature verification.
Benjamin Kramer
benny.kra at googlemail.com
Fri Oct 24 09:31:42 PDT 2014
Author: d0k
Date: Fri Oct 24 11:31:42 2014
New Revision: 220569
URL: http://llvm.org/viewvc/llvm-project?rev=220569&view=rev
Log:
[Modules] Free modules that failed signature verification.
The control flow and ownership is weird enough so unique_ptr doesn't help here :(
Modified:
cfe/trunk/lib/Serialization/ModuleManager.cpp
Modified: cfe/trunk/lib/Serialization/ModuleManager.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ModuleManager.cpp?rev=220569&r1=220568&r2=220569&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ModuleManager.cpp (original)
+++ cfe/trunk/lib/Serialization/ModuleManager.cpp Fri Oct 24 11:31:42 2014
@@ -145,6 +145,7 @@ ModuleManager::addModule(StringRef FileN
// module is *itself* up to date, but has an out-of-date importer.
Modules.erase(Entry);
Chain.pop_back();
+ delete New;
return OutOfDate;
}
}
More information about the cfe-commits
mailing list