1
0
Fork 0
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:
winlin 2020-08-11 15:30:18 +08:00
parent 6ae414af3f
commit f702d8bcd7

View file

@ -1735,7 +1735,7 @@ srs_error_t SrsRtcConnection::on_rtcp(char* data, int nb_data)
SrsRtcpCommon* rtcp = NULL;
while(NULL != (rtcp = rtcp_compound.get_next_rtcp())) {
err = dispatch_rtcp(rtcp);
srs_freep(rtcp);
SrsAutoFree(SrsRtcpCommon, rtcp);
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,