From 5e3a421bfcb891fc7821daa501e30c113fb1bf16 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Fri, 24 Oct 2014 16:31:42 +0000 Subject: [Modules] Free modules that failed signature verification. The control flow and ownership is weird enough so unique_ptr doesn't help here :( llvm-svn: 220569 --- clang/lib/Serialization/ModuleManager.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/lib/Serialization/ModuleManager.cpp') diff --git a/clang/lib/Serialization/ModuleManager.cpp b/clang/lib/Serialization/ModuleManager.cpp index 300ef31b..c76a318 100644 --- a/clang/lib/Serialization/ModuleManager.cpp +++ b/clang/lib/Serialization/ModuleManager.cpp @@ -145,6 +145,7 @@ ModuleManager::addModule(StringRef FileName, ModuleKind Type, // module is *itself* up to date, but has an out-of-date importer. Modules.erase(Entry); Chain.pop_back(); + delete New; return OutOfDate; } } -- cgit v1.1