avoid memory leak in unit test fixture

This commit is contained in:
Axel Kohlmeyer
2021-02-08 10:43:18 -05:00
parent c810cda64c
commit 01a05b88b4

View File

@ -67,6 +67,7 @@ protected:
void TearDown() override
{
if (!verbose) ::testing::internal::CaptureStdout();
delete info;
delete lmp;
if (!verbose) ::testing::internal::GetCapturedStdout();
}