Freeing a double pointer from a struct
问题 I have a problem with my delete_table function. So i have 2 structs struct _entry_ { int key; int data; struct _entry_* next; struct _entry_* prev; }; typedef struct _entry_ entry; struct _table_ { entry** entries; int size; }; typedef struct _table_ table; I initialise my table with calloc. void table_init(table* ht, int initial_size) { ht->entries = (entry**)calloc(initial_size, sizeof(entry*)); if (ht->entries) { ht->size = initial_size; } } Now my free function that i wrote void table