util/hash_table: Clear special 0/1 entries for u64 hash table too
Fixes: e532a47f
("util/hash_table: do not leak u64 struct key")
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13390>
This commit is contained in:
parent
c047fc9de3
commit
ffd4157b1c
|
@ -812,6 +812,8 @@ _mesa_hash_table_u64_clear(struct hash_table_u64 *ht)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
_mesa_hash_table_clear(ht->table, _mesa_hash_table_u64_delete_key);
|
_mesa_hash_table_clear(ht->table, _mesa_hash_table_u64_delete_key);
|
||||||
|
ht->freed_key_data = NULL;
|
||||||
|
ht->deleted_key_data = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue