diff options
author | Vinson Lee <[email protected]> | 2013-02-20 23:32:20 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2013-02-21 21:49:24 -0800 |
commit | b92984b2fa9273ca4470cb973303b231fff9818c (patch) | |
tree | c6928832c68af012f603fce384931a9f3214e3e7 /src | |
parent | 66c3cd0be31aeee8953015f45cc36a85516f2fc6 (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')
-rw-r--r-- | src/gallium/drivers/r600/r600_state_common.c | 1 |
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; } |