projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd2410b
)
linker: Fix memory leak in count_uniform_size::visit_field.
author
Vinson Lee
<vlee@freedesktop.org>
Sat, 31 Mar 2012 06:36:45 +0000
(23:36 -0700)
committer
Vinson Lee
<vlee@freedesktop.org>
Sat, 31 Mar 2012 18:15:41 +0000
(11:15 -0700)
Fixes a Coverity resource leak defect.
NOTE: This is a candidate for the 8.0 branch.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/link_uniforms.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/link_uniforms.cpp
b/src/glsl/link_uniforms.cpp
index 613c9b7ae2274587bbc590977d781ba128bfa7a5..2f1c9f5f70ff136088c8d23e472b9adfd2d72800 100644
(file)
--- a/
src/glsl/link_uniforms.cpp
+++ b/
src/glsl/link_uniforms.cpp
@@
-173,8
+173,7
@@
private:
if (this->map->get(id, name))
return;
- char *key = strdup(name);
- this->map->put(this->num_active_uniforms, key);
+ this->map->put(this->num_active_uniforms, name);
/* Each leaf uniform occupies one entry in the list of active
* uniforms.