diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2019-12-26 11:53:28 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-07-03 16:14:46 +0200 |
commit | d63495c692478a57c66ddc1881b22878dc602e2d (patch) | |
tree | e552da0401a776876c9869f348d9f2b88de44d18 /libavformat/bethsoftvid.c | |
parent | 11185385a01db663c2e636a1c1b74d0fa62bf125 (diff) | |
download | ffmpeg-d63495c692478a57c66ddc1881b22878dc602e2d.tar.gz |
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>
(cherry picked from commit abbb466368c51285ca27d5e3959a16a9591e9a4c)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat/bethsoftvid.c')
0 files changed, 0 insertions, 0 deletions