What's the problem with this code? [hashtable in C]
I'm implementing a hash table. The following is my function for initializing it. Im getting some errors which I cant understand why. I have also quoted what valgrind says. typedef struct HashTable { int size ; struct List *head; struct List *tail; }HashTable; typedef struct List { char *number; char *name; int time; struct List *next; }List; #define size_of_table 211 HashTable *createHashTable(void) { HashTable *new_table = malloc(sizeof(*new_table)*size_of_table); //line 606 if (new_table == NULL) { return NULL; } int i=0; for(i; i<size_of_table; i++) { new_table[i].size=0; new_table[i].head