Message info
 
To:mesa-dev@lists.freedesktop.org From:Vinson Lee Subject:[Mesa-dev] [PATCH] linker: Fix memory leak in count_uniform_size::visit_field. Date:Wed, 28 Mar 2012 23:43:30 -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>
---
src/glsl/link_uniforms.cpp | 1 +
1 file changed, 1 insertion(+)

diff --git a/src/glsl/link_uniforms.cpp b/src/glsl/link_uniforms.cpp
index 613c9b7..86717f9 100644
--- a/src/glsl/link_uniforms.cpp
+++ b/src/glsl/link_uniforms.cpp
@@ -175,6 +175,7 @@ private:

char *key = strdup(name);
this->map->put(this->num_active_uniforms, key);
+ free(key);

/* Each leaf uniform occupies one entry in the list of active
* uniforms.
--
1.7.9.4

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev