encdedstreamtest: fix use-after-free compile error with gcc-12

This commit is contained in:
Tom Briden 2022-05-15 10:20:21 +01:00 committed by Milo Yip
parent 1f59c69cd1
commit 2b2c804500

View File

@ -113,8 +113,8 @@ protected:
EXPECT_EQ(expected, actual); EXPECT_EQ(expected, actual);
} }
EXPECT_EQ('\0', s.Peek()); EXPECT_EQ('\0', s.Peek());
free(data);
EXPECT_EQ(size, eis.Tell()); EXPECT_EQ(size, eis.Tell());
free(data);
} }
} }