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

Michael Niedermayer michael at niedermayer.cc
Sat Mar 14 23:02:52 EET 2020


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.
> 
> 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 at gmail.com>
> ---
>  libavformat/smoothstreamingenc.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)

will apply

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The bravest are surely those who have the clearest vision
of what is before them, glory and danger alike, and yet
notwithstanding go out to meet it. -- Thucydides
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200314/57cfddd8/attachment.sig>


More information about the ffmpeg-devel mailing list