summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnout Vandecappelle <arnout@mind.be>2009-09-08 13:30:29 +0200
committerWim Taymans <wim.taymans@collabora.co.uk>2009-09-08 13:30:29 +0200
commit19455200b17f400f14a29c9b49adadde2c9fd246 (patch)
treec9b5cc5167ed66b1656e7bc15cb1711840e81617
parent8f3299c5474530d0a0b353160816d5b841b5d7cb (diff)
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
-rw-r--r--gst/rtsp/gstrtspsrc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c
index 050e1511a..0490dc68c 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);