]> git.sesse.net Git - ffmpeg/commit
avformat/smoothstreaming: Fix memleaks on errors
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Thu, 26 Dec 2019 10:53:28 +0000 (11:53 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 14 Mar 2020 21:07:27 +0000 (22:07 +0100)
commitabbb466368c51285ca27d5e3959a16a9591e9a4c
tree305f073b5e9ae7602176ededf8f494e99ddabac0
parent6e9cc964293bf1e0cca6a52b2938a20d711e4146
avformat/smoothstreaming: Fix memleaks on errors

If an AVFormatContext could be allocated, but white-/blacklists couldn't
be copied, the AVFormatContext would leak as it was only accessible
through a local variable that goes out of scope when one goes to fail.

Furthermore, in case writing a header of a submuxer failed, the options
used for said call could leak.

Both of these memleaks have been fixed.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/smoothstreamingenc.c