mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine autofree, only free object, never free arrays
This commit is contained in:
parent
300f264e92
commit
dc66c525fd
17 changed files with 160 additions and 155 deletions
|
@ -115,7 +115,7 @@ VOID TEST(HandshakeTest, VerifyFPC0C1)
|
|||
// manually validate the c1
|
||||
// @see: calc_c1_digest
|
||||
char* c1s1_joined_bytes = srs_bytes_join_schema0(c1.time, c1.version, &c1.block0.key, &c1.block1.digest);
|
||||
SrsAutoFree(char, c1s1_joined_bytes, true);
|
||||
SrsAutoFree(char, c1s1_joined_bytes);
|
||||
|
||||
bool is_valid;
|
||||
ASSERT_EQ(ERROR_SUCCESS, c1.c1_validate_digest(is_valid));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue