[Mesa-dev] [PATCH] r600g: Fix memory leak in r600_shader_select.
Marek Olšák
maraeo at gmail.com
Thu Feb 21 01:26:13 PST 2013
Reviewed-by: Marek Olšák <maraeo at gmail.com>
Marek
On Thu, Feb 21, 2013 at 8:43 AM, Vinson Lee <vlee at freedesktop.org> wrote:
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> Reported-by: Michel Dänzer <michel at daenzer.net>
> ---
> src/gallium/drivers/r600/r600_state_common.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/gallium/drivers/r600/r600_state_common.c b/src/gallium/drivers/r600/r600_state_common.c
> index c03ce3d..c4bd758 100644
> --- a/src/gallium/drivers/r600/r600_state_common.c
> +++ b/src/gallium/drivers/r600/r600_state_common.c
> @@ -744,6 +744,7 @@ static int r600_shader_select(struct pipe_context *ctx,
> R600_ERR("Failed to build shader variant (type=%u) %d\n",
> sel->type, r);
> sel->current = NULL;
> + FREE(shader);
> return r;
> }
>
> --
> 1.8.1.2
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list