mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for #515, use SrsAutoFreeA to free the array.
This commit is contained in:
parent
2af7749771
commit
f4f76cd196
13 changed files with 53 additions and 36 deletions
|
@ -380,7 +380,7 @@ int SrsHttpHooks::on_hls_notify(int cid, std::string url, SrsRequest* req, std::
|
|||
|
||||
int nb_buf = srs_min(nb_notify, SRS_HTTP_READ_BUFFER);
|
||||
char* buf = new char[nb_buf];
|
||||
SrsAutoFree(char, buf);
|
||||
SrsAutoFreeA(char, buf);
|
||||
|
||||
int nb_read = 0;
|
||||
ISrsHttpResponseReader* br = msg->body_reader();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue