summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2013-02-20 23:32:20 -0800
committerVinson Lee <[email protected]>2013-02-21 21:49:24 -0800
commitb92984b2fa9273ca4470cb973303b231fff9818c (patch)
treec6928832c68af012f603fce384931a9f3214e3e7 /src/gallium
parent66c3cd0be31aeee8953015f45cc36a85516f2fc6 (diff)
r600g: Fix memory leak in r600_shader_select.
Signed-off-by: Vinson Lee <[email protected]> Reported-by: Michel Dänzer <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/r600/r600_state_common.c1
1 files changed, 1 insertions, 0 deletions
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;
}