Release the memory used by the user structure. Note that this function * will not remove the user from the Users global radix tree. */
| 293 | /* Release the memory used by the user structure. Note that this function |
| 294 | * will not remove the user from the Users global radix tree. */ |
| 295 | void ACLFreeUser(user *u) { |
| 296 | sdsfree(u->name); |
| 297 | listRelease(u->passwords); |
| 298 | listRelease(u->patterns); |
| 299 | listRelease(u->channels); |
| 300 | ACLResetSubcommands(u); |
| 301 | zfree(u); |
| 302 | } |
| 303 | |
| 304 | /* When a user is deleted we need to cycle the active |
| 305 | * connections in order to kill all the pending ones that |
no test coverage detected