On Mon, Sep 16, 2013 at 10:06:26PM +0300, Martin Storsjö wrote:
> --- a/libavcodec/truemotion2.c
> +++ b/libavcodec/truemotion2.c
> @@ -929,14 +929,14 @@ static av_cold int decode_init(AVCodecContext *avctx)
>      if (!l->Y1_base || !l->Y2_base || !l->U1_base ||
>          !l->V1_base || !l->U2_base || !l->V2_base ||
>          !l->last    || !l->clast) {
> -        av_freep(l->Y1_base);
> -        av_freep(l->Y2_base);
> -        av_freep(l->U1_base);
> -        av_freep(l->U2_base);
> -        av_freep(l->V1_base);
> -        av_freep(l->V2_base);
> -        av_freep(l->last);
> -        av_freep(l->clast);
> +        av_freep(&l->Y1_base);
> +        av_freep(&l->Y2_base);
> +        av_freep(&l->U1_base);
> +        av_freep(&l->U2_base);
> +        av_freep(&l->V1_base);
> +        av_freep(&l->V2_base);
> +        av_freep(&l->last);
> +        av_freep(&l->clast);
>          return AVERROR(ENOMEM);
>      }

This is a particularly silly mistake I guess.

OK

Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to