projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
112ccfa
)
st/vega: Fix memory leak in combine_shaders.
author
Vinson Lee
<vlee@freedesktop.org>
Sun, 24 Feb 2013 00:49:37 +0000
(16:49 -0800)
committer
Vinson Lee
<vlee@freedesktop.org>
Wed, 27 Feb 2013 04:01:58 +0000
(20:01 -0800)
Fixes resource leak defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/state_trackers/vega/shaders_cache.c
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/vega/shaders_cache.c
b/src/gallium/state_trackers/vega/shaders_cache.c
index
eceae54
..
c1082ca
100644
(file)
--- a/
src/gallium/state_trackers/vega/shaders_cache.c
+++ b/
src/gallium/state_trackers/vega/shaders_cache.c
@@
-225,8
+225,10
@@
combine_shaders(const struct shader_asm_info *shaders[SHADER_STAGES], int num_sh
ureg_END(ureg);
shader->tokens = ureg_finalize(ureg);
- if(!shader->tokens)
+ if (!shader->tokens) {
+ ureg_destroy(ureg);
return NULL;
+ }
p = pipe->create_fs_state(pipe, shader);