[gst-cvs] gst-plugins-good: rtspsrc: fix memory leak

Wim Taymans wtay at kemper.freedesktop.org
Tue Sep 8 04:31:04 PDT 2009


Module: gst-plugins-good
Branch: master
Commit: 19455200b17f400f14a29c9b49adadde2c9fd246
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=19455200b17f400f14a29c9b49adadde2c9fd246

Author: Arnout Vandecappelle <arnout at mind.be>
Date:   Tue Sep  8 13:30:29 2009 +0200

rtspsrc: fix memory leak

In gst_rtspsrc_parse_digest_challenge(), rtspsrc does a g_strndup of the auth
header items and then passes them to gst_rtsp_connection_set_auth_param()
without freeing.

Fixes #594133

---

 gst/rtsp/gstrtspsrc.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c
index 050e151..0490dc6 100644
--- a/gst/rtsp/gstrtspsrc.c
+++ b/gst/rtsp/gstrtspsrc.c
@@ -3489,6 +3489,7 @@ gst_rtspsrc_parse_digest_challenge (GstRTSPConnection * conn,
       value = NULL;
 
     gst_rtsp_connection_set_auth_param (conn, item, value);
+    g_free (item);
   }
 
   g_slist_free (list);





More information about the Gstreamer-commits mailing list