Release all the resources associated with MULTI/EXEC state */
| 41 | |
| 42 | /* Release all the resources associated with MULTI/EXEC state */ |
| 43 | void 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 */ |
| 58 | void queueMultiCommand(client *c) { |
no test coverage detected