diff --git a/clang/Driver/SerializationTest.cpp b/clang/Driver/SerializationTest.cpp index e9d6f59aefb9..086d5587e981 100644 --- a/clang/Driver/SerializationTest.cpp +++ b/clang/Driver/SerializationTest.cpp @@ -99,6 +99,8 @@ bool SerializationTest::Deserialize(llvm::sys::Path& Filename, for (TranslationUnit::iterator I=NewTU->begin(), E=NewTU->end(); I!=E; ++I) FilePrinter->HandleTopLevelDecl(*I); } + + delete NewTU; return true; }