glsl_to_tgsi: Fix potential leak
authorErnestas Kulik <ernestas.kulik@gmail.com>
Thu, 30 Aug 2018 16:02:44 +0000 (19:02 +0300)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 4 Sep 2018 18:01:43 +0000 (14:01 -0400)
commitd49904085a1c4054da247a54d3787ec34ef7c900
treeaec3b06bb5d8916d3344af86a68d81f31428840d
parentea1e50cc166ae855f9fa91ca6a4f944123298e4e
glsl_to_tgsi: Fix potential leak

Reported by Coverity: arr_live_ranges is freed in a different branch
than the one in which it was allocated.

Signed-off-by: Ernestas Kulik <ernestas.kulik@gmail.com>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp