On Mon, Sep 1, 2014 at 7:08 PM, Dave Airlie <airl...@gmail.com> wrote:
> From: Dave Airlie <airl...@redhat.com>
>
> This one path doesn't goto fail, so it seems to leak dec.
>
> Signed-off-by: Dave Airlie <airl...@redhat.com>

Reviewed-by: Ilia Mirkin <imir...@alum.mit.edu>

> ---
>  src/gallium/drivers/nouveau/nouveau_video.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/gallium/drivers/nouveau/nouveau_video.c 
> b/src/gallium/drivers/nouveau/nouveau_video.c
> index 8795c9d..bd04625 100644
> --- a/src/gallium/drivers/nouveau/nouveau_video.c
> +++ b/src/gallium/drivers/nouveau/nouveau_video.c
> @@ -553,7 +553,7 @@ nouveau_create_decoder(struct pipe_context *context,
>                                 &mpeg);
>     if (ret < 0) {
>        debug_printf("Creation failed: %s (%i)\n", strerror(-ret), ret);
> -      return NULL;
> +      goto fail;
>     }
>
>     dec->mpeg = mpeg;
> --
> 1.9.3
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to