fix: coverage tests and hash_map_free on NULL

This commit is contained in:
Matteo Flebus 2026-01-30 20:28:38 +01:00
parent 834b6585c5
commit 828b0e8be3
2 changed files with 2 additions and 2 deletions

View file

@ -116,8 +116,8 @@ void hash_map_free(struct hash_map **hash_map)
}
free((*hash_map)->data);
free(*hash_map);
*hash_map = NULL;
}
*hash_map = NULL;
}
void hash_map_foreach(struct hash_map *hash_map,