projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nouveau: fix frees in unsupported IR error paths.
[mesa.git]
/
src
/
gallium
/
drivers
/
nouveau
/
nvc0
/
nvc0_state.c
diff --git
a/src/gallium/drivers/nouveau/nvc0/nvc0_state.c
b/src/gallium/drivers/nouveau/nvc0/nvc0_state.c
index 2ab51c8529e303c5437ed32040e4d9c45d5544aa..7c0f605dc16db4b8f79110a5f2055c6b9f3e8640 100644
(file)
--- a/
src/gallium/drivers/nouveau/nvc0/nvc0_state.c
+++ b/
src/gallium/drivers/nouveau/nvc0/nvc0_state.c
@@
-607,6
+607,7
@@
nvc0_sp_state_create(struct pipe_context *pipe,
break;
default:
assert(!"unsupported IR!");
+ free(prog);
return NULL;
}
@@
-739,6
+740,7
@@
nvc0_cp_state_create(struct pipe_context *pipe,
break;
default:
assert(!"unsupported IR!");
+ free(prog);
return NULL;
}