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
winlin
2016-09-05 09:38:30 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6ec60b0a21e7e55d3cce7dd6da5931fdd318844d
6ec60b0a
1 parent
1214af64
fix memory leak at handshake. 2.0.213
隐藏空白字符变更
内嵌
并排对比
正在显示
4 个修改的文件
包含
13 行增加
和
2 行删除
README.md
trunk/src/core/srs_core.hpp
trunk/src/protocol/srs_rtmp_handshake.cpp
trunk/src/protocol/srs_rtmp_handshake.hpp
README.md
查看文件 @
6ec60b0
...
...
@@ -340,6 +340,8 @@ Remark:
## History
*
v2.0, 2016-09-05, fix memory leak at handshake. 2.0.213
*
v2.0, 2016-09-04, support valgrind for
[
patched st
](
https://github.com/ossrs/state-threads/issues/2
)
.
*
v2.0, 2016-09-03, support all arm for
[
patched st
](
https://github.com/ossrs/state-threads/issues/1
)
. 2.0.212
*
v2.0, 2016-09-01, workaround
[
#511
][
bug #511
]
the fly stfd in close. 2.0.211
*
v2.0, 2016-08-30, comment the pcr.
...
...
trunk/src/core/srs_core.hpp
查看文件 @
6ec60b0
...
...
@@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// current release version
#define VERSION_MAJOR 2
#define VERSION_MINOR 0
#define VERSION_REVISION 21
2
#define VERSION_REVISION 21
3
// generated by configure, only macros.
#include <srs_auto_headers.hpp>
...
...
trunk/src/protocol/srs_rtmp_handshake.cpp
查看文件 @
6ec60b0
...
...
@@ -152,6 +152,11 @@ namespace _srs_internal
SrsDH
::~
SrsDH
()
{
close
();
}
void
SrsDH
::
close
()
{
if
(
pdh
!=
NULL
)
{
if
(
pdh
->
p
!=
NULL
)
{
BN_free
(
pdh
->
p
);
...
...
@@ -249,7 +254,9 @@ namespace _srs_internal
{
int
ret
=
ERROR_SUCCESS
;
int32_t
bits_count
=
1024
;
int32_t
bits_count
=
1024
;
close
();
//1. Create the DH
if
((
pdh
=
DH_new
())
==
NULL
)
{
...
...
trunk/src/protocol/srs_rtmp_handshake.hpp
查看文件 @
6ec60b0
...
...
@@ -59,6 +59,8 @@ namespace _srs_internal
public
:
SrsDH
();
virtual
~
SrsDH
();
private
:
virtual
void
close
();
public
:
/**
* initialize dh, generate the public and private key.
...
...
请
注册
或
登录
后发表评论