diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 6bc6fc371f..79455cd178 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -3973,6 +3973,8 @@ gst_rtspsrc_setup_streams (GstRTSPSrc * src) gst_rtspsrc_stream_free_udp (stream); continue; default: + /* cleanup of leftover transport and move to the next stream */ + gst_rtspsrc_stream_free_udp (stream); goto response_error; }