Forgotten free on error

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18813 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2006-06-25 14:02:28 +00:00
parent 6e809b6f52
commit ee00cceb8b
1 changed files with 2 additions and 0 deletions

View File

@ -433,6 +433,8 @@ int read_asf_header(demuxer_t *demuxer,struct asf_priv* asf){
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