summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDarren Salt <linux@youmustbejoking.demon.co.uk>2010-07-19 19:53:14 +0100
committerDarren Salt <linux@youmustbejoking.demon.co.uk>2010-07-19 19:53:14 +0100
commit88682e14a4c89caa499fedad2a3faab316f72dda (patch)
tree4b58c6ea68969a89d38939cc0fb1b3ccd7ef3a85 /src
parent3ed086bfd3deca46445b918806f2e0129bb35ab0 (diff)
downloadxine-lib-88682e14a4c89caa499fedad2a3faab316f72dda.tar.gz
xine-lib-88682e14a4c89caa499fedad2a3faab316f72dda.tar.bz2
Fix a potential freeing of unallocated memory.
Diffstat (limited to 'src')
-rw-r--r--src/demuxers/asfheader.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/demuxers/asfheader.c b/src/demuxers/asfheader.c
index e9a36fc29..1482ac982 100644
--- a/src/demuxers/asfheader.c
+++ b/src/demuxers/asfheader.c
@@ -300,6 +300,9 @@ static int asf_header_parse_stream_properties(asf_header_t *header, uint8_t *buf
if (!asf_stream)
goto exit_error;
+ asf_stream->private_data = NULL;
+ asf_stream->error_correction_data = NULL;
+
asf_reader_init(&reader, buffer, buffer_len);
asf_reader_get_guid(&reader, &guid);