]> git.sesse.net Git - ffmpeg/commit
avformat/movenc: Don't forget to free fragment buffers
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 28 Sep 2020 16:36:06 +0000 (18:36 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 4 Oct 2020 22:49:31 +0000 (00:49 +0200)
commite3b5316bede3cf735f66a0a1b83ca833693ffce7
treee53331f7265054360b087914be2028b0c0015caa
parent432f291dffb0079bf447b1cdb8802a022298510f
avformat/movenc: Don't forget to free fragment buffers

The buffers used when fragmented output is enabled have up until now not
been freed in the deinit function; they leak e.g. if one errors out of
mov_write_trailer() before one reaches the point where they are normally
written out and freed. This can e.g. happen if allocating new vos_data
fails at the beginning of mov_write_trailer().

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavformat/movenc.c