Git fork

Merge branch 'en/hashmap-clear-fix'

hashmap API clean-up to ensure hashmap_clear() leaves a cleared map
in a reusable state.

* en/hashmap-clear-fix:
hashmap: ensure hashmaps are reusable after hashmap_clear()

+3 -2
+3 -2
hashmap.c
··· 205 205 return; 206 206 if (entry_offset >= 0) /* called by hashmap_clear_and_free */ 207 207 free_individual_entries(map, entry_offset); 208 - free(map->table); 209 - memset(map, 0, sizeof(*map)); 208 + FREE_AND_NULL(map->table); 209 + map->tablesize = 0; 210 + map->private_size = 0; 210 211 } 211 212 212 213 struct hashmap_entry *hashmap_get(const struct hashmap *map,