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

Function redisOpArrayFree

src/server.cpp:4305–4318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4303}
4304
4305void redisOpArrayFree(redisOpArray *oa) {
4306 while(oa->numops) {
4307 int j;
4308 redisOp *op;
4309
4310 oa->numops--;
4311 op = oa->ops+oa->numops;
4312 for (j = 0; j < op->argc; j++)
4313 decrRefCount(op->argv[j]);
4314 zfree(op->argv);
4315 }
4316 zfree(oa->ops);
4317 oa->ops = NULL;
4318}
4319
4320/* ====================== Commands lookup and execution ===================== */
4321

Callers 2

callFunction · 0.85

Calls 2

decrRefCountFunction · 0.85
zfreeFunction · 0.85

Tested by

no test coverage detected