This commit is contained in:
2026-02-05 16:11:51 +01:00
parent dcbd6de602
commit b400d34574
8 changed files with 87 additions and 2 deletions
+3 -2
View File
@@ -101,7 +101,7 @@ void hash_map_free(struct hash_map *hash_map)
}
free(hash_map->data);
free(hash_map);
hash_map->data = NULL;
//hash_map->data = NULL;
}
void hash_map_dump(struct hash_map *hash_map)
@@ -160,8 +160,9 @@ bool hash_map_remove(struct hash_map *hash_map, const char *key)
prev->next = elt->next;
else
hash_map->data[hashed_val] = elt->next;
free(elt);
//free(elt);
printf("removed %s", elt->value);
free(elt);
return true;
}