svga: fix shader variant memory leak
authorBrian Paul <brianp@vmware.com>
Thu, 10 Sep 2015 14:47:16 +0000 (08:47 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 10 Sep 2015 18:23:46 +0000 (12:23 -0600)
commit289804515f7de20cb41a5e1b4c20864f0dab8d51
tree94b8df19fe074bffbe0e3b8352d362c1d5500ac7
parentece33f96879775401361d14cb2faeb1a2f1ea806
svga: fix shader variant memory leak

Fixes a small leak in a seldom-hit corner case for VS/FS compilation.
Found with coverity.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/svga/svga_state_fs.c
src/gallium/drivers/svga/svga_state_vs.c