MCPcopy Create free account
hub / github.com/RsyncProject/rsync / hashtable_destroy

Function hashtable_destroy

hashtable.c:58–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58void 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

Callers 1

idev_destroyFunction · 0.85

Calls 2

rprintfFunction · 0.70
who_am_iFunction · 0.70

Tested by

no test coverage detected