forked from OSchip/llvm-project
Call delete on the deserialized TranslationUnit object.
llvm-svn: 49136
This commit is contained in:
parent
ca6226628e
commit
03e662d5be
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue