Call delete on the deserialized TranslationUnit object.

llvm-svn: 49136
This commit is contained in:
Sam Bishop 2008-04-03 05:03:34 +00:00
parent ca6226628e
commit 03e662d5be
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}