Re: [FFmpeg-devel] [PATCH] libavformat/matroskaenc.c: fix small memory leaks on error

2015-08-19 Thread Michael Niedermayer
On Wed, Aug 19, 2015 at 01:06:56AM -0700, Neil Birkbeck wrote: > Fixing small leaks that can occur when mkv_write_tracks fails in > mkv_write_header > (e.g., if video track has unknown codec). Also changing mkv_write_seekhead to > take > the MatroskaMuxContext to avoid having dangling pointers. >

[FFmpeg-devel] [PATCH] libavformat/matroskaenc.c: fix small memory leaks on error

2015-08-19 Thread Neil Birkbeck
Fixing small leaks that can occur when mkv_write_tracks fails in mkv_write_header (e.g., if video track has unknown codec). Also changing mkv_write_seekhead to take the MatroskaMuxContext to avoid having dangling pointers. Signed-off-by: Neil Birkbeck --- libavformat/matroskaenc.c | 67 +++