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:
0259cbb
)
Fix leak of converted string
author
David Schleef
<ds@schleef.org>
Sat, 24 Jan 2009 01:51:00 +0000
(17:51 -0800)
committer
David Schleef
<ds@schleef.org>
Sat, 24 Jan 2009 01:51:32 +0000
(17:51 -0800)
gst/asfdemux/gstasfdemux.c
patch
|
blob
|
history
diff --git
a/gst/asfdemux/gstasfdemux.c
b/gst/asfdemux/gstasfdemux.c
index
54e0fa3
..
ab57324
100644
(file)
--- a/
gst/asfdemux/gstasfdemux.c
+++ b/
gst/asfdemux/gstasfdemux.c
@@
-2237,12
+2237,15
@@
gst_asf_demux_process_metadata (GstASFDemux * demux, guint8 * data,
if (data_type != ASF_DEMUX_DATA_TYPE_DWORD) {
gst_asf_demux_skip_bytes (data_len, &data, &size);
+ g_free (name_utf8);
continue;
}
/* read DWORD */
- if (size < 4)
+ if (size < 4) {
+ g_free (name_utf8);
goto not_enough_data;
+ }
ival = gst_asf_demux_get_uint32 (&data, &size);