From: Vinson Lee Date: Thu, 21 Feb 2013 07:32:20 +0000 (-0800) Subject: r600g: Fix memory leak in r600_shader_select. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b92984b2fa9273ca4470cb973303b231fff9818c;p=mesa.git r600g: Fix memory leak in r600_shader_select. Signed-off-by: Vinson Lee Reported-by: Michel Dänzer Reviewed-by: Marek Olšák --- diff --git a/src/gallium/drivers/r600/r600_state_common.c b/src/gallium/drivers/r600/r600_state_common.c index c03ce3d86ee..c4bd758d796 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; }