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

Function freeClientMultiState

src/multi.cpp:44–56  ·  view source on GitHub ↗

Release all the resources associated with MULTI/EXEC state */

Source from the content-addressed store, hash-verified

42
43/* Release all the resources associated with MULTI/EXEC state */
44void freeClientMultiState(client *c) {
45 int j;
46
47 for (j = 0; j < c->mstate.count; j++) {
48 int i;
49 multiCmd *mc = c->mstate.commands+j;
50
51 for (i = 0; i < mc->argc; i++)
52 decrRefCount(mc->argv[i]);
53 zfree(mc->argv);
54 }
55 zfree(c->mstate.commands);
56}
57
58/* Add a new command into the MULTI commands queue */
59void queueMultiCommand(client *c) {

Callers 3

discardTransactionFunction · 0.85
freeClientFunction · 0.85
freeFakeClientFunction · 0.85

Calls 2

decrRefCountFunction · 0.85
zfreeFunction · 0.85

Tested by

no test coverage detected