Skip to content

Commit 3490e83

Browse files
committed
Added destructor to TestTCP to delete TestContext.
1 parent 27ac393 commit 3490e83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/transport/raw/tests/TestTCP.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ class TestTCP : public ::testing::Test
163163
{
164164
protected:
165165
TestTCP() { inContext = new TestContext(); }
166-
~TestUDP() { delete inContext; }
166+
~TestTCP() { delete inContext; }
167167
void SetUp() { ASSERT_EQ(inContext->Init(), CHIP_NO_ERROR); }
168168
void TearDown() { inContext->Shutdown(); }
169169
TestContext * inContext;

0 commit comments

Comments
 (0)