mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Merge from SRS2.
This commit is contained in:
commit
d6e28bde69
3 changed files with 13 additions and 1 deletions
|
@ -91,6 +91,11 @@ void SrsAppCasterFlv::remove(ISrsConnection* c)
|
|||
if ((it = std::find(conns.begin(), conns.end(), conn)) != conns.end()) {
|
||||
conns.erase(it);
|
||||
}
|
||||
|
||||
// fixbug: SrsHttpConn for CasterFlv is not freed, which could cause memory leak
|
||||
// so, free conn which is not managed by SrsServer->conns;
|
||||
// @see: https://github.com/ossrs/srs/issues/826
|
||||
srs_freep(c);
|
||||
}
|
||||
|
||||
int SrsAppCasterFlv::serve_http(ISrsHttpResponseWriter* w, ISrsHttpMessage* r)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue