[go: nahoru, domu]

Skip to content

Commit

Permalink
encdedstreamtest: fix use-after-free compile error with gcc-12
Browse files Browse the repository at this point in the history
  • Loading branch information
tombriden authored and miloyip committed May 16, 2022
1 parent 1f59c69 commit 2b2c804
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unittest/encodedstreamtest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ class EncodedStreamTest : public ::testing::Test {
EXPECT_EQ(expected, actual);
}
EXPECT_EQ('\0', s.Peek());
free(data);
EXPECT_EQ(size, eis.Tell());
free(data);
}
}

Expand Down

0 comments on commit 2b2c804

Please sign in to comment.