mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix bug of mem leak, free the left msgs if send error
This commit is contained in:
parent
befde6acf7
commit
9ba786d1aa
3 changed files with 3 additions and 3 deletions
|
@ -493,7 +493,7 @@ int SrsEdgeForwarder::cycle()
|
|||
|
||||
if ((ret = client->send_and_free_message(msg)) != ERROR_SUCCESS) {
|
||||
srs_error("edge publish forwarder send message to server failed. ret=%d", ret);
|
||||
break;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
// free the array itself.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue