name_to_element = create_hashtable(str_case_hash, str_case_equal, NULL, NULL);
for (i = 0; i < O_MAX; i++)
name_to_element = create_hashtable(str_case_hash, str_case_equal, NULL, NULL);
for (i = 0; i < O_MAX; i++)
hashtable_insert(name_to_element, key, INT_TO_PTR(i));
/* ^^^ do not free "key", as hash table needs it during the whole time! */
hashtable_insert(name_to_element, key, INT_TO_PTR(i));
/* ^^^ do not free "key", as hash table needs it during the whole time! */
hashtable_insert(name_to_element, key, INT_TO_PTR(i));
/* once again, do not free "key" ^^^ */
hashtable_insert(name_to_element, key, INT_TO_PTR(i));
/* once again, do not free "key" ^^^ */