Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
haofz
2017-04-15 16:56:28 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
winlin
2017-04-15 16:56:28 +0800
Commit
52b6823a90650471cb4be995af5ce7164f564d83
52b6823a
1 parent
8d35585c
fix #826, fix memory leak in streamCasterFlv (#836)
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
5 行增加
和
0 行删除
trunk/src/app/srs_app_caster_flv.cpp
trunk/src/app/srs_app_caster_flv.cpp
查看文件 @
52b6823
...
...
@@ -86,6 +86,11 @@ void SrsAppCasterFlv::remove(SrsConnection* c)
if
((
it
=
std
::
find
(
conns
.
begin
(),
conns
.
end
(),
c
))
!=
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
)
...
...
请
注册
或
登录
后发表评论