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

Function freeStream

src/t_stream.cpp:78–83  ·  view source on GitHub ↗

Free a stream, including the listpacks stored inside the radix tree. */

Source from the content-addressed store, hash-verified

76
77/* Free a stream, including the listpacks stored inside the radix tree. */
78void freeStream(stream *s) {
79 raxFreeWithCallback(s->rax,(void(*)(void*))lpFree);
80 if (s->cgroups)
81 raxFreeWithCallback(s->cgroups,(void(*)(void*))streamFreeCG);
82 zfree(s);
83}
84
85/* Return the length of a stream. */
86unsigned long streamLength(robj_roptr subject) {

Callers 1

freeStreamObjectFunction · 0.85

Calls 2

raxFreeWithCallbackFunction · 0.85
zfreeFunction · 0.85

Tested by

no test coverage detected