summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2010-09-21 17:51:06 +0100
committerJosé Fonseca <[email protected]>2010-09-21 17:51:29 +0100
commitb556bb7c44236a9fae54f58cc03e1d05eaa2124f (patch)
tree5137ec141315f3349bf60509ee0fda40f2adc357 /src/gallium/drivers/llvmpipe
parent388c94195af41c2084f4882ab414c86b575818fb (diff)
llvmpipe: When failing free fs shader too.
Diffstat (limited to 'src/gallium/drivers/llvmpipe')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_state_fs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c b/src/gallium/drivers/llvmpipe/lp_state_fs.c
index fb673db6d0f..4277c47eeb6 100644
--- a/src/gallium/drivers/llvmpipe/lp_state_fs.c
+++ b/src/gallium/drivers/llvmpipe/lp_state_fs.c
@@ -906,6 +906,7 @@ llvmpipe_create_fs_state(struct pipe_context *pipe,
shader->draw_data = draw_create_fragment_shader(llvmpipe->draw, templ);
if (shader->draw_data == NULL) {
FREE((void *) shader->base.tokens);
+ FREE(shader);
return NULL;
}