correct use of calloc in hashtable_t