mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
For #307, fix some memory leaking
This commit is contained in:
parent
e22d1dffc1
commit
a8cc3a3430
3 changed files with 9 additions and 3 deletions
|
@ -832,6 +832,7 @@ srs_error_t SrsGoApiRtcPlay::do_serve_http(ISrsHttpResponseWriter* w, ISrsHttpMe
|
|||
|
||||
// Parse req, the request json object, from body.
|
||||
SrsJsonObject* req = NULL;
|
||||
SrsAutoFree(SrsJsonObject, req);
|
||||
if (true) {
|
||||
string req_json;
|
||||
if ((err = r->body_read_all(req_json)) != srs_success) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue