From: José Fonseca Date: Sun, 15 Nov 2009 14:46:48 +0000 (-0800) Subject: llvmpipe: Fix memory leak. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=066991c8d147db94b9661361bb191919b962fc4e;p=mesa.git llvmpipe: Fix memory leak. --- diff --git a/src/gallium/drivers/llvmpipe/lp_state_vs.c b/src/gallium/drivers/llvmpipe/lp_state_vs.c index 15c30296144..8a761648e7e 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_vs.c +++ b/src/gallium/drivers/llvmpipe/lp_state_vs.c @@ -92,5 +92,6 @@ llvmpipe_delete_vs_state(struct pipe_context *pipe, void *vs) (struct lp_vertex_shader *)vs; draw_delete_vertex_shader(llvmpipe->draw, state->draw_data); + FREE( (void *)state->shader.tokens ); FREE( state ); }