mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +00:00
srtpenc: Fix potential leak
When attempting to process a buffer after the rtcp session was closed the output buffer memory would remain referenced. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6029>
This commit is contained in:
parent
b684ce33b7
commit
1b01415c3b
1 changed files with 1 additions and 0 deletions
|
@ -1149,6 +1149,7 @@ gst_srtp_enc_process_buffer (GstSrtpEnc * filter, GstPad * pad,
|
|||
if (filter->session == NULL) {
|
||||
/* The rtcp session disappeared (element shutting down) */
|
||||
GST_OBJECT_UNLOCK (filter);
|
||||
gst_buffer_unmap (bufout, &mapout);
|
||||
ret = GST_FLOW_FLUSHING;
|
||||
goto fail;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue