projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6bc622
)
Fix string leak in rtspmessage
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Mon, 2 Feb 2009 09:09:07 +0000
(10:09 +0100)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Mon, 2 Feb 2009 09:09:07 +0000
(10:09 +0100)
when we remove a header field from a message we must free the value associated
with the key to avoid a memory leak.
gst-libs/gst/rtsp/gstrtspmessage.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/rtsp/gstrtspmessage.c
b/gst-libs/gst/rtsp/gstrtspmessage.c
index
44586b8
..
f15dad8
100644
(file)
--- a/
gst-libs/gst/rtsp/gstrtspmessage.c
+++ b/
gst-libs/gst/rtsp/gstrtspmessage.c
@@
-563,6
+563,7
@@
gst_rtsp_message_remove_header (GstRTSPMessage * msg, GstRTSPHeaderField field,
if (key_value.field == field && (indx == -1 || cnt++ == indx)) {
g_array_remove_index (msg->hdr_fields, i);
+ g_free (key_value.value);
res = GST_RTSP_OK;
if (indx != -1)
break;