[0.11] gst-plugins-good: udpsrc: fix string leak

Vincent Penquerc'h vincent at kemper.freedesktop.org
Tue Jan 24 06:55:39 PST 2012


Module: gst-plugins-good
Branch: 0.11
Commit: 6429359d5559ee6c7f375082a2d2b617276eaaa4
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=6429359d5559ee6c7f375082a2d2b617276eaaa4

Author: Vincent Penquerc'h <vincent.penquerch at collabora.co.uk>
Date:   Tue Jan 24 14:53:38 2012 +0000

udpsrc: fix string leak

---

 gst/udp/gstudpsrc.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/gst/udp/gstudpsrc.c b/gst/udp/gstudpsrc.c
index 2870591..539faca 100644
--- a/gst/udp/gstudpsrc.c
+++ b/gst/udp/gstudpsrc.c
@@ -322,6 +322,9 @@ gst_udpsrc_finalize (GObject * object)
   g_free (udpsrc->uri);
   udpsrc->uri = NULL;
 
+  g_free (udpsrc->host);
+  udpsrc->host = NULL;
+
   if (udpsrc->socket)
     g_object_unref (udpsrc->socket);
   udpsrc->socket = NULL;



More information about the gstreamer-commits mailing list