projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1968127
)
rtp: fix buffer leak when gst_rtp_buffer_map() fails because of broken data
author
Tim-Philipp Müller
<tim@centricular.net>
Wed, 22 Aug 2012 08:20:55 +0000
(09:20 +0100)
committer
Tim-Philipp Müller
<tim@centricular.net>
Wed, 22 Aug 2012 08:20:55 +0000
(09:20 +0100)
Makes libs/rtp unit test valgrind clean.
gst-libs/gst/rtp/gstrtpbuffer.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/rtp/gstrtpbuffer.c
b/gst-libs/gst/rtp/gstrtpbuffer.c
index
86fc808
..
f6f8bcc
100644
(file)
--- a/
gst-libs/gst/rtp/gstrtpbuffer.c
+++ b/
gst-libs/gst/rtp/gstrtpbuffer.c
@@
-443,7
+443,14
@@
wrong_padding:
}
dump_packet:
{
+ gint i;
+
GST_MEMDUMP ("buffer", data, size);
+
+ for (i = 0; i < G_N_ELEMENTS (rtp->map); ++i) {
+ if (rtp->data[i] != NULL)
+ gst_buffer_unmap (buffer, &rtp->map[i]);
+ }
return FALSE;
}
}