free sample to prevent memory leak. v5.0.222 v6.0.164 (#4305)
修复`SrsRtpRawPayload::copy()`方法中sample_覆盖的问题。 --------- Co-authored-by: chundonglinlin <chundonglinlin@163.com> Co-authored-by: winlin <winlinvip@gmail.com> --------- Co-authored-by: john <hondaxiao@tencent.com>
This commit is contained in:
parent
2b5c1ad06d
commit
64e5658f17
|
|
@ -7,6 +7,7 @@ The changelog for SRS.
|
|||
<a name="v6-changes"></a>
|
||||
|
||||
## SRS 6.0 Changelog
|
||||
* v6.0, 2025-03-20, Merge [#4305](https://github.com/ossrs/srs/pull/4305): free sample to prevent memory leak. v6.0.164 (#4305)
|
||||
* v6.0, 2025-03-18, Merge [#4302](https://github.com/ossrs/srs/pull/4302): update geekyeggo/delete-artifact to 5.0.0. v6.0.163 (#4302)
|
||||
* v6.0, 2025-03-06, Merge [#4296](https://github.com/ossrs/srs/pull/4296): Dvr: support h265 flv fragments. v6.0.162 (#4296)
|
||||
* v6.0, 2025-02-20, Merge [#4253](https://github.com/ossrs/srs/pull/4253): fix typo about heartbeat. v6.0.161 (#4253)
|
||||
|
|
@ -175,6 +176,7 @@ The changelog for SRS.
|
|||
<a name="v5-changes"></a>
|
||||
|
||||
## SRS 5.0 Changelog
|
||||
* v5.0, 2025-03-20, Merge [#4305](https://github.com/ossrs/srs/pull/4305): free sample to prevent memory leak. v5.0.222 (#4305)
|
||||
* v5.0, 2025-03-18, Merge [#4302](https://github.com/ossrs/srs/pull/4302): update geekyeggo/delete-artifact to 5.0.0. v5.0.221 (#4302)
|
||||
* v5.0, 2025-02-20, Merge [#4253](https://github.com/ossrs/srs/pull/4253): fix typo about heartbeat. v5.0.220 (#4253)
|
||||
* v5.0, 2025-02-19, Merge [#4291](https://github.com/ossrs/srs/pull/4291): fix ci error. v5.0.219 (#4291)
|
||||
|
|
|
|||
|
|
@ -9,6 +9,6 @@
|
|||
|
||||
#define VERSION_MAJOR 5
|
||||
#define VERSION_MINOR 0
|
||||
#define VERSION_REVISION 221
|
||||
#define VERSION_REVISION 222
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -9,6 +9,6 @@
|
|||
|
||||
#define VERSION_MAJOR 6
|
||||
#define VERSION_MINOR 0
|
||||
#define VERSION_REVISION 163
|
||||
#define VERSION_REVISION 164
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1021,6 +1021,9 @@ ISrsRtpPayloader* SrsRtpRawPayload::copy()
|
|||
|
||||
cp->payload = payload;
|
||||
cp->nn_payload = nn_payload;
|
||||
|
||||
// free sample to prevent memory leak.
|
||||
srs_freep(cp->sample_);
|
||||
cp->sample_ = sample_->copy();
|
||||
|
||||
return cp;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user