mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for #730, refine code to decode the acknowledge message
This commit is contained in:
parent
759c84a395
commit
dc1f227aeb
3 changed files with 21 additions and 2 deletions
|
@ -31,12 +31,12 @@ using namespace std;
|
|||
VOID TEST(CoreAutoFreeTest, Free)
|
||||
{
|
||||
char* data = new char[32];
|
||||
srs_freep(data);
|
||||
srs_freepa(data);
|
||||
EXPECT_TRUE(data == NULL);
|
||||
|
||||
if (true) {
|
||||
data = new char[32];
|
||||
SrsAutoFree(char, data);
|
||||
SrsAutoFreeA(char, data);
|
||||
}
|
||||
EXPECT_TRUE(data == NULL);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue