mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
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>
(cherry picked from commit 4123d0b321)
This commit is contained in:
parent
b4693383bf
commit
8537544be9
1 changed files with 1 additions and 2 deletions
|
|
@ -174,8 +174,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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue