mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
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> (cherry picked from commitffd4157b1c)
This commit is contained in:
parent
1a1536ccbe
commit
5916624286
2 changed files with 3 additions and 1 deletions
|
|
@ -238,7 +238,7 @@
|
|||
"description": "util/hash_table: Clear special 0/1 entries for u64 hash table too",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "e532a47f76cc8d763e2534c61b27dce0f5bc86a0"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -807,6 +807,8 @@ _mesa_hash_table_u64_clear(struct hash_table_u64 *ht)
|
|||
return;
|
||||
|
||||
_mesa_hash_table_clear(ht->table, _mesa_hash_table_u64_delete_key);
|
||||
ht->freed_key_data = NULL;
|
||||
ht->deleted_key_data = NULL;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue