summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2013-02-19 23:16:14 -0800
committerVinson Lee <[email protected]>2013-02-20 23:29:12 -0800
commit0d51906c0754b1c1a2964af50c55306bce9ab224 (patch)
treea7a86b79647ce75e02ae1be666fcd6b2a99ccbff /src
parent54d9c8a04a3d79da9a73f4b30d1c30874e05dc58 (diff)
radeonsi: Fix memory leak in si_shader_select.
Fixes resource leak defect reported by Coverity. Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/radeonsi/si_state.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c
index dc12520adbb..81452ebc231 100644
--- a/src/gallium/drivers/radeonsi/si_state.c
+++ b/src/gallium/drivers/radeonsi/si_state.c
@@ -1942,6 +1942,7 @@ int si_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;
}