Skip to content

Commit 2b2c804

Browse files
tombridenmiloyip
authored andcommitted
encdedstreamtest: fix use-after-free compile error with gcc-12
1 parent 1f59c69 commit 2b2c804

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unittest/encodedstreamtest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ class EncodedStreamTest : public ::testing::Test {
113113
EXPECT_EQ(expected, actual);
114114
}
115115
EXPECT_EQ('\0', s.Peek());
116-
free(data);
117116
EXPECT_EQ(size, eis.Tell());
117+
free(data);
118118
}
119119
}
120120

0 commit comments

Comments
 (0)