From a39f465692acba813b31bc2e6ac5348637f1e10c Mon Sep 17 00:00:00 2001 From: Philippe Normand Date: Thu, 6 Feb 2025 17:13:16 +0000 Subject: [PATCH] rtpsession: Fix heap-use-after-free of twcc_packets structure This is a regression introduced by 90d99c7b52d9dc82a220cca1355f1dca3d57a838. Part-of: --- subprojects/gst-plugins-good/gst/rtpmanager/gstrtpsession.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/subprojects/gst-plugins-good/gst/rtpmanager/gstrtpsession.c b/subprojects/gst-plugins-good/gst/rtpmanager/gstrtpsession.c index e05b9a50a8..6c903a33d7 100644 --- a/subprojects/gst-plugins-good/gst/rtpmanager/gstrtpsession.c +++ b/subprojects/gst-plugins-good/gst/rtpmanager/gstrtpsession.c @@ -3012,8 +3012,6 @@ gst_rtp_session_notify_twcc (RTPSession * sess, gst_structure_copy (twcc_packets)); gst_pad_push_event (send_rtp_sink, event); gst_object_unref (send_rtp_sink); - } else { - gst_structure_free (twcc_packets); } if (send_rtp_src) {