[Mesa-dev] [PATCH] main: Don't leak temporary texture rows

Anuj Phogat anuj.phogat at gmail.com
Tue Sep 2 10:29:19 PDT 2014


On Mon, Sep 1, 2014 at 1:36 AM, Jason Ekstrand <jason at jlekstrand.net> wrote:
> ---
>  src/mesa/main/texstore.c | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c
> index f2eb0de..4b8158a 100644
> --- a/src/mesa/main/texstore.c
> +++ b/src/mesa/main/texstore.c
> @@ -1634,6 +1634,8 @@ texstore_via_float(TEXSTORE_PARAMS)
>        }
>     }
>
> +   free(tmp_row);
> +
>     return GL_TRUE;
>  }
>
> @@ -1702,6 +1704,8 @@ texstore_rgba_integer(TEXSTORE_PARAMS)
>        }
>     }
>
> +   free(tmp_row);
> +
>     return GL_TRUE;
>  }
>
> --
> 2.1.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>


More information about the mesa-dev mailing list