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

Function ACLFreeUser

app/redis-6.2.6/src/acl.c:286–293  ·  view source on GitHub ↗

Release the memory used by the user structure. Note that this function * will not remove the user from the Users global radix tree. */

Source from the content-addressed store, hash-verified

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. */
286void 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

Callers 4

ACLAppendUserForLoadingFunction · 0.85
ACLLoadFromFileFunction · 0.85
aclCommandFunction · 0.85

Calls 4

sdsfreeFunction · 0.85
listReleaseFunction · 0.85
ACLResetSubcommandsFunction · 0.85
zfreeFunction · 0.70

Tested by

no test coverage detected