mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for #515, merge from srs2, use SrsAutoFreeA.
This commit is contained in:
parent
604486b0a3
commit
f57e537686
14 changed files with 54 additions and 37 deletions
|
@ -198,7 +198,7 @@ int SrsMpegtsOverUdp::on_udp_bytes(string host, int port, char* buf, int nb_buf)
|
|||
buffer->erase(buffer->length());
|
||||
int nb_fbuf = fr.filesize();
|
||||
char* fbuf = new char[nb_fbuf];
|
||||
SrsAutoFree(char, fbuf);
|
||||
SrsAutoFreeA(char, fbuf);
|
||||
if ((ret = fr.read(fbuf, nb_fbuf, NULL)) != ERROR_SUCCESS) {
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue