util/hash_table: Use FREE() to be consistent with the CALLOC_STRUCT() call
authorBoris Brezillon <boris.brezillon@collabora.com>
Fri, 1 Dec 2023 17:39:31 +0000 (18:39 +0100)
committerEric Engestrom <eric@engestrom.ch>
Sun, 17 Dec 2023 23:48:00 +0000 (23:48 +0000)
commitb02dc14ff713050493ef8b49f119f8a4b4d34dfd
tree422e489f58207d770b10a0d8dbe852de9aafc2c7
parent9cabb39d8f04684b1d03e9488f7c30fa86bcb6e1
util/hash_table: Use FREE() to be consistent with the CALLOC_STRUCT() call

CALLOC_STRUCT() calls the OS abstraction layer to do the allocation.
Call FREE() to free the corresponding objects so we keep things
consistent and have proper debug traces when memory-debugging
is enabled.

Fixes: 6649b840c340 ("mesa/util: add a hash table wrapper which support 64-bit keys")
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26423>
(cherry picked from commit 977cc3157dc0215c065bc3039f7fd5c8b359dc17)
.pick_status.json
src/util/hash_table.c