Commit 9c2e64db authored by antirez's avatar antirez
Browse files

ACL: remove leak in ACLSetUser().

parent efce73a0
...@@ -554,6 +554,7 @@ int ACLSetUser(user *u, const char *op, ssize_t oplen) { ...@@ -554,6 +554,7 @@ int ACLSetUser(user *u, const char *op, ssize_t oplen) {
/* Check if the command exists. We can't check the /* Check if the command exists. We can't check the
* subcommand to see if it is valid. */ * subcommand to see if it is valid. */
if (ACLLookupCommand(copy) == NULL) { if (ACLLookupCommand(copy) == NULL) {
zfree(copy);
errno = ENOENT; errno = ENOENT;
return C_ERR; return C_ERR;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment