llvmpipe: Do not need to free anything if there is no geometry shader.
authorVinson Lee <vlee@freedesktop.org>
Sun, 4 Aug 2013 08:18:28 +0000 (01:18 -0700)
committerVinson Lee <vlee@freedesktop.org>
Tue, 6 Aug 2013 04:54:20 +0000 (21:54 -0700)
commitb57c1e4b86a0884318418bb19191af41cfd40175
tree0f1daa87774cce2a66ba5997911e1e03264dc4b8
parent60b567ee59b96b9fa334bf59d3d443c29c590c54
llvmpipe: Do not need to free anything if there is no geometry shader.

If gs is null, then freeing state->shader.tokens would result in a null
dereference.

Fixes "Dereference after null check" defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/llvmpipe/lp_state_gs.c