diff --git a/gst-libs/gst/rtsp/gstrtspconnection.c b/gst-libs/gst/rtsp/gstrtspconnection.c index bb20822486..5d1556a667 100644 --- a/gst-libs/gst/rtsp/gstrtspconnection.c +++ b/gst-libs/gst/rtsp/gstrtspconnection.c @@ -877,6 +877,7 @@ connect_failed: { GST_ERROR ("failed to connect: %s", error->message); g_clear_error (&error); + g_free (uri); return GST_RTSP_ERROR; } remote_address_failed: @@ -884,11 +885,13 @@ remote_address_failed: GST_ERROR ("failed to connect: %s", error->message); g_object_unref (connection); g_clear_error (&error); + g_free (uri); return GST_RTSP_ERROR; } tunneling_failed: { GST_ERROR ("failed to setup tunneling"); + g_free (uri); return res; } }