mirror of
https://github.com/redis/redis.git
synced 2026-06-10 17:30:09 -04:00
ACL: remove leak in ACLSetUser().
This commit is contained in:
parent
efce73a001
commit
9c2e64db9c
1 changed files with 1 additions and 0 deletions
|
|
@ -554,6 +554,7 @@ int ACLSetUser(user *u, const char *op, ssize_t oplen) {
|
|||
/* Check if the command exists. We can't check the
|
||||
* subcommand to see if it is valid. */
|
||||
if (ACLLookupCommand(copy) == NULL) {
|
||||
zfree(copy);
|
||||
errno = ENOENT;
|
||||
return C_ERR;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue