]> git.sesse.net Git - ffmpeg/commit
avformat/hlsenc: Fix memleak when using single_file
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 11 Sep 2019 12:36:36 +0000 (14:36 +0200)
committerSteven Liu <lq@chinaffmpeg.org>
Sat, 14 Sep 2019 01:55:49 +0000 (09:55 +0800)
commit1a066d87e3ea2fb8139af9181b3abf0f0a16a208
treeea583b4dededb3e5e9bb4eb850a9ce7ce0176edf
parent88a26abcc6579c4e63c42a8ca26f7f93ae5d4e0d
avformat/hlsenc: Fix memleak when using single_file

This commit fixes a memleak in the hls muxer when one uses a single file
as output. It has been forgotten to free the temporary buffers used to write
the packets so that the size of the leaks basically amounts to the size
of the output file. This commit adds the necessary free.

Reviewed-by: Steven Liu <lq@onvideo.cn>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavformat/hlsenc.c