Fixed a leak using hmap_<name>_remove

This commit is contained in:
Maix0 2024-08-12 17:15:13 +02:00
parent 6a504cab3e
commit 132d7d8bc7
3 changed files with 10 additions and 6 deletions

View file

@ -39,7 +39,6 @@ void hmap_C__PREFIX___remove(t_hashmap_C__PREFIX__ *hmap, C__KEYTYPE__ *key)
hmap->hfunc(&hmap->hasher, key);
hashed_key = hasher_reset_and_finish(&hmap->hasher);
hmap->hasher = hasher_sip13_new();
prev = NULL;
entry = hmap_C__PREFIX___get_entry(hmap, hashed_key, key, &prev);
if (entry == NULL)