Release the memory used by the user structure. Note that this function * will not remove the user from the Users global radix tree. */
| 284 | /* Release the memory used by the user structure. Note that this function |
| 285 | * will not remove the user from the Users global radix tree. */ |
| 286 | void ACLFreeUser(user *u) { |
| 287 | sdsfree(u->name); |
| 288 | listRelease(u->passwords); |
| 289 | listRelease(u->patterns); |
| 290 | listRelease(u->channels); |
| 291 | ACLResetSubcommands(u); |
| 292 | zfree(u); |
| 293 | } |
| 294 | |
| 295 | /* When a user is deleted we need to cycle the active |
| 296 | * connections in order to kill all the pending ones that |
no test coverage detected