glsl: free uniform_map on failure path.
authorDave Airlie <airlied@redhat.com>
Mon, 1 Sep 2014 23:54:36 +0000 (09:54 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 2 Sep 2014 06:05:52 +0000 (16:05 +1000)
commit2d5d1f55983f645df97f0b44ab95235d30faa7bf
tree053f82e986ca004ae25a89d891dcf168ca2c5373
parent9f2050365851c61f21f83ce60bc628a3e192e1dc
glsl: free uniform_map on failure path.

If we fails in reserve_explicit_locations, we leak uniform_map.

Reported-by: coverity scanner.
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/glsl/linker.cpp