MCPcopy Create free account
hub / github.com/F-Stack/f-stack / dictFreeUnlinkedEntry

Function dictFreeUnlinkedEntry

app/redis-6.2.6/src/dict.c:461–466  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

459/* You need to call this function to really free the entry after a call
460 * to dictUnlink(). It's safe to call this function with 'he' = NULL. */
461void dictFreeUnlinkedEntry(dict *d, dictEntry *he) {
462 if (he == NULL) return;
463 dictFreeKey(d, he);
464 dictFreeVal(d, he);
465 zfree(he);
466}
467
468/* Destroy an entire dictionary */
469int _dictClear(dict *d, dictht *ht, void(callback)(void *)) {

Callers 6

dbAsyncDeleteFunction · 0.85
dbSyncDeleteFunction · 0.85
zsetRemoveFromSkiplistFunction · 0.85

Calls 1

zfreeFunction · 0.70

Tested by

no test coverage detected