MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / HashTableFreeUnlinkedEntry

Function HashTableFreeUnlinkedEntry

src/util/dict.c:544–549  ·  view source on GitHub ↗

You need to call this function to really free the entry after a call * to HashTableUnlink(). It's safe to call this function with 'he' = NULL. */

Source from the content-addressed store, hash-verified

542/* You need to call this function to really free the entry after a call
543 * to HashTableUnlink(). It's safe to call this function with 'he' = NULL. */
544void HashTableFreeUnlinkedEntry(dict *d, dictEntry *he) {
545 if (he == NULL) return;
546 dictFreeKey(d, he);
547 dictFreeVal(d, he);
548 free(he);
549}
550
551/* Destroy an entire dictionary */
552static int _dictClear(dict *d, int htidx, void(callback)(dict*)) {

Callers 1

dictGenericDeleteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected