MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / ACLFreeUser

Function ACLFreeUser

src/acl.cpp:295–302  ·  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

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

Callers 4

ACLAppendUserForLoadingFunction · 0.85
ACLLoadFromFileFunction · 0.85
aclCommandFunction · 0.85

Calls 4

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

Tested by

no test coverage detected