diff options
author | Ognyan Tonchev <otonchev@gmail.com> | 2014-03-16 17:04:44 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2014-04-12 13:58:36 +0100 |
commit | b21ae03c89fa8c11a00659d53c917f58d8e6287a (patch) | |
tree | 4cdaf2dea0cb44b54cb58e4aceaeca39c2a3805b | |
parent | 72f328fbde0f902b0fb31443c5c3d65d9f5e016d (diff) | |
download | gstreamer-plugins-base-b21ae03c89fa8c11a00659d53c917f58d8e6287a.tar.gz |
rtspconnection: Fix minor memory leaks in error handling
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=726642
-rw-r--r-- | gst-libs/gst/rtsp/gstrtspconnection.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gst-libs/gst/rtsp/gstrtspconnection.c b/gst-libs/gst/rtsp/gstrtspconnection.c index 58577e96c..ef1fcf1e4 100644 --- a/gst-libs/gst/rtsp/gstrtspconnection.c +++ b/gst-libs/gst/rtsp/gstrtspconnection.c @@ -750,6 +750,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: @@ -757,11 +758,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; } } |