changeset 18809:9634870ebe4c

Forgotten free on error
author reimar
date Sun, 25 Jun 2006 14:02:28 +0000
parents cb83184bdc70
children f6bd47b9ed4f
files libmpdemux/asfheader.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/asfheader.c	Sun Jun 25 09:02:47 2006 +0000
+++ b/libmpdemux/asfheader.c	Sun Jun 25 14:02:28 2006 +0000
@@ -433,6 +433,8 @@
   stream_read(demuxer->stream, guid_buffer, 16);
   if (memcmp(guid_buffer, asf_data_chunk_guid, 16) != 0) {
     mp_msg(MSGT_HEADER, MSGL_FATAL, MSGTR_MPDEMUX_ASFHDR_NoDataChunkAfterHeader);
+    free(streams);
+    streams = NULL;
     return 0;
   }
   // read length of chunk