diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2019-12-26 11:53:28 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-05-20 01:07:22 +0200 |
commit | 5efb7dc2b2e437b201d3e6e28b2d2c7e121dc28b (patch) | |
tree | ab3949434fa9928fa8b197761d1eacd15b944113 /libavformat/utils.c | |
parent | 119ed69bd57749eccf992252b36b94cfa211f45e (diff) | |
download | ffmpeg-5efb7dc2b2e437b201d3e6e28b2d2c7e121dc28b.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)
Diffstat (limited to 'libavformat/utils.c')
0 files changed, 0 insertions, 0 deletions