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

Function freeClientMultiState

app/redis-6.2.6/src/multi.c:43–55  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 3

discardTransactionFunction · 0.85
freeClientFunction · 0.85
freeFakeClientFunction · 0.85

Calls 2

decrRefCountFunction · 0.85
zfreeFunction · 0.70

Tested by

no test coverage detected