Skip to content
Snippets Groups Projects
Commit e532a47f authored by Juan A. Suárez's avatar Juan A. Suárez
Browse files

util/hash_table: do not leak u64 struct key


For non 64bit devices the key stored in hash_table_u64 is wrapped in
hash_key_u64 structure, which is never free.

This commit fixes this issue by just removing the user-defined
`delete_function` parameter in hash_table_u64_{destroy,clear} (which
nobody is using) and using instead a delete function to free this
structure.

Fixes: 608257cf ("i965: Fix INTEL_DEBUG=bat")
Reviewed-by: default avatarIan Romanick <ian.d.romanick@intel.com>
Signed-off-by: default avatarJuan A. Suarez Romero <jasuarez@igalia.com>
Part-of: <!10480>
parent 33f9b06b
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment