glsl/link_varyings: Fix hash table leak
authorYevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com>
Wed, 10 Jul 2019 10:44:44 +0000 (13:44 +0300)
committerYevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com>
Fri, 12 Jul 2019 08:07:08 +0000 (11:07 +0300)
commit8c5692b696ed4a8d59da83cdcfef9548b7e6b4e7
treec1c3f851ad5912ee21b0ff40f576c9101fe1b72b
parent712ac8303348113ec1596f279057555e5e34ef1f
glsl/link_varyings: Fix hash table leak

Hash tables were not destroyed at return.

v2: Use ralloc_context (Eric Anholt)

Signed-off-by: Yevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com>
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/compiler/glsl/link_varyings.cpp