draw: avoid leaking tokens when building pstipple fragment shader
authorKeith Whitwell <keithw@vmware.com>
Tue, 2 Jun 2009 02:48:40 +0000 (19:48 -0700)
committerKeith Whitwell <keithw@vmware.com>
Tue, 2 Jun 2009 03:35:38 +0000 (20:35 -0700)
Add missing FREE() after MALLOC().

src/gallium/auxiliary/draw/draw_pipe_pstipple.c

index 9287fc130eeabaf45a44b0cbb5c0c94dfd81f6aa..bc63b700dea9817df6fc0b832a71359a5c89ea80 100644 (file)
@@ -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;
 }