util: rzalloc and free hash_table_u64
authorDylan Baker <dylan.c.baker@intel.com>
Thu, 23 Feb 2023 17:50:33 +0000 (09:50 -0800)
committerMarge Bot <emma+marge@anholt.net>
Tue, 28 Feb 2023 08:35:32 +0000 (08:35 +0000)
commitff494361bee7506db701cb861073ab194ae3a6e9
treec53ae48be1a69be4cf2275462cb605ebb98483a6
parent75968398f37c91a14c0eaafcd16e24a8bf59ec11
util: rzalloc and free hash_table_u64

Otherwise we're prone to leaking the table itself, since it's not freed
in the destroy function

CID: 1516552
fixes: 6649b840c34016b4753e69d4513a8d09da9febb2
       ("mesa/util: add a hash table wrapper which support 64-bit keys")

Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21499>
src/util/hash_table.c