Fixed a leak using hmap_<name>_remove
This commit is contained in:
parent
6a504cab3e
commit
132d7d8bc7
3 changed files with 10 additions and 6 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue