From d7857325c50b7fa173e980bdaec77c405f7b50b9 Mon Sep 17 00:00:00 2001 From: Ognyan Tonchev Date: Sun, 16 Mar 2014 17:04:44 +0100 Subject: [PATCH] rtspconnection: Fix minor memory leaks in error handling Fixes https://bugzilla.gnome.org/show_bug.cgi?id=726642 --- gst-libs/gst/rtsp/gstrtspconnection.c | 3 +++ 1 file changed, 3 insertions(+) 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; } }