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

Function freeHashObject

app/redis-6.2.6/src/object.c:340–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338}
339
340void freeHashObject(robj *o) {
341 switch (o->encoding) {
342 case OBJ_ENCODING_HT:
343 dictRelease((dict*) o->ptr);
344 break;
345 case OBJ_ENCODING_ZIPLIST:
346 zfree(o->ptr);
347 break;
348 default:
349 serverPanic("Unknown hash encoding type");
350 break;
351 }
352}
353
354void freeModuleObject(robj *o) {
355 moduleValue *mv = o->ptr;

Callers 1

decrRefCountFunction · 0.85

Calls 2

dictReleaseFunction · 0.70
zfreeFunction · 0.70

Tested by

no test coverage detected