diff options
author | Vinson Lee <vlee@freedesktop.org> | 2012-03-30 23:36:45 -0700 |
---|---|---|
committer | Vinson Lee <vlee@freedesktop.org> | 2012-03-31 11:15:41 -0700 |
commit | 4123d0b32138a0fbdbc7f61380d041704ba0ad43 (patch) | |
tree | ece228805adfade70894374182acc4ad8f65cac0 /src/glsl | |
parent | bd2410b48df261251f75c2c69785c8cc3182d94d (diff) | |
download | external_mesa3d-4123d0b32138a0fbdbc7f61380d041704ba0ad43.zip external_mesa3d-4123d0b32138a0fbdbc7f61380d041704ba0ad43.tar.gz external_mesa3d-4123d0b32138a0fbdbc7f61380d041704ba0ad43.tar.bz2 |
linker: Fix memory leak in count_uniform_size::visit_field.
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>
Diffstat (limited to 'src/glsl')
-rw-r--r-- | src/glsl/link_uniforms.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/glsl/link_uniforms.cpp b/src/glsl/link_uniforms.cpp index 613c9b7..2f1c9f5 100644 --- 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. |