rtspsrc: fix memory leak
authorArnout Vandecappelle <arnout@mind.be>
Tue, 8 Sep 2009 11:30:29 +0000 (13:30 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 8 Sep 2009 11:30:29 +0000 (13:30 +0200)
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

index 050e151..0490dc6 100644 (file)
@@ -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);