| 56 | } |
| 57 | |
| 58 | void hashtable_destroy(struct hashtable *tbl) |
| 59 | { |
| 60 | if (DEBUG_GTE(HASH, 1)) { |
| 61 | rprintf(FINFO, "[%s] destroyed hashtable %lx (size: %d, keys: %d-bit)\n", |
| 62 | who_am_i(), (long)tbl, tbl->size, tbl->key64 ? 64 : 32); |
| 63 | } |
| 64 | free(tbl->nodes); |
| 65 | free(tbl); |
| 66 | } |
| 67 | |
| 68 | /* Returns the node that holds the indicated key if it exists. When it does not |
| 69 | * exist, it returns either NULL (when data_when_new is NULL), or it returns a |
no test coverage detected