multiudpsink: fix GError memory leak when hostname resolution fails
authorVineeth TM <vineeth.tm@samsung.com>
Fri, 11 Sep 2015 08:09:28 +0000 (17:09 +0900)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 11 Sep 2015 09:18:14 +0000 (10:18 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=754869

gst/udp/gstmultiudpsink.c

index bb84997..905e3fd 100644 (file)
@@ -482,6 +482,7 @@ gst_udp_client_new (GstMultiUDPSink * sink, const gchar * host, gint port)
 
 name_resolve:
   {
+    g_clear_error (&err);
     g_object_unref (resolver);
 
     return NULL;