[MPlayer-cvslog] r37681 - trunk/libmpdemux/demux_mkv.c

reimar subversion at mplayerhq.hu
Thu Feb 11 22:54:19 CET 2016


Author: reimar
Date: Thu Feb 11 22:54:19 2016
New Revision: 37681

Log:
demux_mkv: Fix memleak with multiple CHAPSTRING.

Likely to not happen in a valid file, but still.
Fixes a Coverity issue.

Modified:
   trunk/libmpdemux/demux_mkv.c

Modified: trunk/libmpdemux/demux_mkv.c
==============================================================================
--- trunk/libmpdemux/demux_mkv.c	Thu Feb 11 22:48:44 2016	(r37680)
+++ trunk/libmpdemux/demux_mkv.c	Thu Feb 11 22:54:19 2016	(r37681)
@@ -1133,6 +1133,7 @@ static int demux_mkv_read_chapters(demux
 
                                 switch (ebml_read_id(s, &il)) {
                                 case MATROSKA_ID_CHAPSTRING:
+                                    free(name);
                                     name = ebml_read_utf8(s, &l);
                                     break;
                                 default:


More information about the MPlayer-cvslog mailing list