Skip to content

util/hash_table: do not leak u64 struct key

Juan A. Suárez requested to merge jasuarez/mesa:review/hash_u64_leak into master

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.

Merge request reports