#4049: av_write_trailer() - memory leaks on error - interleave_packet()
----------------------------------+---------------------------------------
             Reporter:  perexg    |                     Type:  defect
               Status:  new       |                 Priority:  important
            Component:  avformat  |                  Version:  unspecified
             Keywords:            |               Blocked By:
             Blocking:            |  Reproduced by developer:  0
Analyzed by developer:  0         |
----------------------------------+---------------------------------------
 Summary of the bug:

 The av_write_trails() function calls s->oformat->write_trailer() callback
 only when interleave_packet() does not return an error.

 In other case (storage is full, output file descriptor is unavailable),
 the callback is not called, causing memory leaks, because muxers are
 freeing their structures in the .write_trailer() callback

--
Ticket URL: <https://trac.ffmpeg.org/ticket/4049>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
[email protected]
http://avcodec.org/mailman/listinfo/ffmpeg-trac

Reply via email to