[FFmpeg-devel] [PATCH 1/3] avcodec/exr: Fix memleaks in decode_header()

Moritz Barsnick barsnick at gmx.net
Wed Jan 31 22:04:54 EET 2018


On Wed, Jan 31, 2018 at 19:20:08 +0100, Michael Niedermayer wrote:

> @@ -1458,8 +1465,10 @@ static int decode_header(EXRContext *s, AVFrame *frame)
>
>                  s->channels = av_realloc(s->channels,
>                                           ++s->nb_channels * sizeof(EXRChannel));
> -                if (!s->channels)
> -                    return AVERROR(ENOMEM);
> +                if (!s->channels) {
> +                    ret = AVERROR(ENOMEM);;
                                            ^^
Duplicate semicolon. This should have given you a new warning.

Moritz


More information about the ffmpeg-devel mailing list