mesa: ARB program parser should clean parameters
authorSergii Romantsov <sergii.romantsov@globallogic.com>
Tue, 28 May 2019 09:24:36 +0000 (12:24 +0300)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 3 Jun 2019 20:41:26 +0000 (16:41 -0400)
commit88340372eea64aeb8bb578e0fc070019d77b83dd
treec9becc2e9372abd54da085949ab98b4f004d5926
parent382e3553af4257c4dff517bbe183a2c69a1bc8d7
mesa: ARB program parser should clean parameters

Program parser allocates parameter list.
In case of parsing error some variables will not be freed.
Patch adds freeing of it.

Signed-off-by: Sergii Romantsov <sergii.romantsov@globallogic.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/program/arbprogparse.c
src/mesa/program/program_parse.y