From: Keith Whitwell Date: Tue, 2 Jun 2009 02:48:40 +0000 (-0700) Subject: draw: avoid leaking tokens when building pstipple fragment shader X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=69a765df1c3bf6acc549a5a6a047bbde16988721;p=mesa.git draw: avoid leaking tokens when building pstipple fragment shader Add missing FREE() after MALLOC(). --- diff --git a/src/gallium/auxiliary/draw/draw_pipe_pstipple.c b/src/gallium/auxiliary/draw/draw_pipe_pstipple.c index 9287fc130ee..bc63b700dea 100644 --- a/src/gallium/auxiliary/draw/draw_pipe_pstipple.c +++ b/src/gallium/auxiliary/draw/draw_pipe_pstipple.c @@ -358,6 +358,7 @@ generate_pstip_fs(struct pstip_stage *pstip) pstip->fs->pstip_fs = pstip->driver_create_fs_state(pstip->pipe, &pstip_fs); + FREE((void *)pstip_fs.tokens); return TRUE; }