i want to free the hash table. does this function look correct?
Code:void free_table (void) { int i; struct hash_list *v, *temp; for (i = 0; i < HASHSIZE; i++){ v = hashtab[i]; while (v != NULL){ temp = v; v = v -> next; free (temp -> name); free (temp); } }printf ("Done\n"); }