MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / freeStringObject

Function freeStringObject

src/object.cpp:322–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

320}
321
322void freeStringObject(robj_roptr o) {
323 if (o->encoding == OBJ_ENCODING_RAW) {
324 sdsfree(szFromObj(o));
325 }
326}
327
328void freeListObject(robj_roptr o) {
329 if (o->encoding == OBJ_ENCODING_QUICKLIST) {

Callers 1

decrRefCountFunction · 0.85

Calls 2

sdsfreeFunction · 0.85
szFromObjFunction · 0.85

Tested by

no test coverage detected