From 092cb8cd5735b5c01c892cb68a8e1887799025df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Wed, 14 Nov 2007 20:34:24 +0000 Subject: [PATCH] gst/rtsp/gstrtspsrc.c: Don't leak sdp message contents (fixes #496773). Original commit message from CVS: * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_open): Don't leak sdp message contents (fixes #496773). * gst/udp/gstudpsink.c: (gst_udpsink_finalize): Don't leak URI string. --- ChangeLog | 8 ++++++++ gst/rtsp/gstrtspsrc.c | 2 ++ gst/udp/gstudpsink.c | 1 + 3 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index e24a43f462..49a86a4400 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2007-11-14 Tim-Philipp Müller + + * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_open): + Don't leak sdp message contents (fixes #496773). + + * gst/udp/gstudpsink.c: (gst_udpsink_finalize): + Don't leak URI string. + 2007-11-14 Tim-Philipp Müller Patch by: Julien Puydt diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 4405dba3f1..98d1c59781 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -3914,6 +3914,7 @@ gst_rtspsrc_open (GstRTSPSrc * src) /* clean up any messages */ gst_rtsp_message_unset (&request); gst_rtsp_message_unset (&response); + gst_sdp_message_uninit (&sdp); return TRUE; @@ -3978,6 +3979,7 @@ cleanup_error: GST_RTSP_STATE_UNLOCK (src); gst_rtsp_message_unset (&request); gst_rtsp_message_unset (&response); + gst_sdp_message_uninit (&sdp); return FALSE; } } diff --git a/gst/udp/gstudpsink.c b/gst/udp/gstudpsink.c index 62db330804..f808c3b51b 100644 --- a/gst/udp/gstudpsink.c +++ b/gst/udp/gstudpsink.c @@ -157,6 +157,7 @@ static void gst_udpsink_finalize (GstUDPSink * udpsink) { g_free (udpsink->host); + g_free (udpsink->uri); G_OBJECT_CLASS (parent_class)->finalize ((GObject *) udpsink); }