Re: [FFmpeg-devel] [PATCH 03/17] avformat/smoothstreaming: Fix memleaks on errors

2020-03-14 Thread Michael Niedermayer
On Thu, Dec 26, 2019 at 11:53:28AM +0100, Andreas Rheinhardt wrote: > 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. > > Furtherm

Re: [FFmpeg-devel] [PATCH 03/17] avformat/smoothstreaming: Fix memleaks on errors

2020-03-13 Thread Andreas Rheinhardt
Andreas Rheinhardt: > 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 fail

[FFmpeg-devel] [PATCH 03/17] avformat/smoothstreaming: Fix memleaks on errors

2019-12-26 Thread Andreas Rheinhardt
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