projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1798d9a
)
fix a small memory leak in _mesa_add_state_reference()
author
Brian Paul
<brian.paul@tungstengraphics.com>
Wed, 24 May 2006 03:25:22 +0000
(
03:25
+0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Wed, 24 May 2006 03:25:22 +0000
(
03:25
+0000)
src/mesa/shader/program.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/program.c
b/src/mesa/shader/program.c
index d9c24c345c4e73549d3f4ce0f08eda5f0e27b200..7451a3ed018ceecab3d7bbbbf27ae97392a4d563 100644
(file)
--- a/
src/mesa/shader/program.c
+++ b/
src/mesa/shader/program.c
@@
-467,6
+467,9
@@
_mesa_add_state_reference(struct program_parameter_list *paramList,
make_state_flags(stateTokens);
}
+ /* free name string here since we duplicated it in add_parameter() */
+ _mesa_free((void *) name);
+
return index;
}