mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
RTC: Fix RTCP free bug
This commit is contained in:
parent
6ae414af3f
commit
f702d8bcd7
1 changed files with 1 additions and 1 deletions
|
@ -1735,7 +1735,7 @@ srs_error_t SrsRtcConnection::on_rtcp(char* data, int nb_data)
|
||||||
SrsRtcpCommon* rtcp = NULL;
|
SrsRtcpCommon* rtcp = NULL;
|
||||||
while(NULL != (rtcp = rtcp_compound.get_next_rtcp())) {
|
while(NULL != (rtcp = rtcp_compound.get_next_rtcp())) {
|
||||||
err = dispatch_rtcp(rtcp);
|
err = dispatch_rtcp(rtcp);
|
||||||
srs_freep(rtcp);
|
SrsAutoFree(SrsRtcpCommon, rtcp);
|
||||||
|
|
||||||
if(srs_success != err) {
|
if(srs_success != err) {
|
||||||
return srs_error_wrap(err, "cipher=%u, plaintext=%u, bytes=%s, rtcp=(%u,%u,%u,%u)", nb_data, nb_unprotected_buf,
|
return srs_error_wrap(err, "cipher=%u, plaintext=%u, bytes=%s, rtcp=(%u,%u,%u,%u)", nb_data, nb_unprotected_buf,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue