[FFmpeg-devel] Fix memory leaks in segment muxer

sebechlebskyjan at gmail.com sebechlebskyjan at gmail.com
Mon Jun 20 17:24:04 CEST 2016

From: Jan Sebechlebsky <sebechlebskyjan at gmail.com>

I've observed several memory leaks in segment muxer in case the
failure happens in seg_init (write_header call). 
I'm sending patchset to fix those.


Jan Sebechlebsky (3):
  avformat/segment: Check write_header return value immediately
  avformat/segment: Ensure write_trailer is called
  avformat/segment: Use deinit function to deinitialize muxer

 libavformat/segment.c | 68 ++++++++++++++++++++++++++++-----------------------
 1 file changed, 37 insertions(+), 31 deletions(-)


More information about the ffmpeg-devel mailing list