Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
9c2e64db
Commit
9c2e64db
authored
Jan 30, 2019
by
antirez
Browse files
ACL: remove leak in ACLSetUser().
parent
efce73a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/acl.c
View file @
9c2e64db
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment