projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ff6790
)
st/mesa: Fix memory leak on out-of-memory error path.
author
Vinson Lee
<vlee@vmware.com>
Sun, 21 Feb 2010 23:10:50 +0000
(15:10 -0800)
committer
Vinson Lee
<vlee@vmware.com>
Sun, 21 Feb 2010 23:10:50 +0000
(15:10 -0800)
src/mesa/state_tracker/st_program.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_program.c
b/src/mesa/state_tracker/st_program.c
index 7ce3938904b72018224389568fc5b888f43cea39..7f8677d400cc853c8a32c968ddc3c1970cb2fe0e 100644
(file)
--- a/
src/mesa/state_tracker/st_program.c
+++ b/
src/mesa/state_tracker/st_program.c
@@
-205,8
+205,10
@@
st_translate_vertex_program(struct st_context *st,
unsigned num_outputs;
ureg = ureg_create( TGSI_PROCESSOR_VERTEX );
- if (ureg == NULL)
+ if (ureg == NULL) {
+ FREE(vpv);
return NULL;
+ }
vpv->num_inputs = stvp->num_inputs;
num_outputs = stvp->num_outputs;