[FFmpeg-devel] [PATCH 35/45] avcodec/mjpegdec: Fix memleak upon init failure

Anton Khirnov anton at khirnov.net
Fri Dec 4 14:01:09 EET 2020


Quoting Andreas Rheinhardt (2020-11-27 02:02:39)
> This affected all decoders that used ff_mjpeg_decode_init() as init
> function; and it also affected decoders that open jpeg decoders via
> ff_codec_open2_recursive() as well as MxPEG.
> 
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
> ---
>  libavcodec/jpeglsdec.c | 2 +-
>  libavcodec/mjpegbdec.c | 2 +-
>  libavcodec/mjpegdec.c  | 4 ++--
>  libavcodec/sp5xdec.c   | 4 ++--
>  4 files changed, 6 insertions(+), 6 deletions(-)

Looks good.

-- 
Anton Khirnov


More information about the ffmpeg-devel mailing list