# HG changeset patch # User reimar # Date 1151244148 0 # Node ID 9634870ebe4c894b58762c5a4768e1af6c84c4c4 # Parent cb83184bdc706b248803c3c3045790b6c8e9969a Forgotten free on error diff -r cb83184bdc70 -r 9634870ebe4c libmpdemux/asfheader.c --- 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