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
0de83bcc
Commit
0de83bcc
authored
Jan 25, 2019
by
zhaozhao.zz
Browse files
ACL: fix memory leak when key patterns no match
parent
8fc00793
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/acl.c
View file @
0de83bcc
...
@@ -570,9 +570,12 @@ int ACLCheckCommandPerm(client *c) {
...
@@ -570,9 +570,12 @@ int ACLCheckCommandPerm(client *c) {
break
;
break
;
}
}
}
}
if
(
!
match
)
return
ACL_DENIED_KEY
;
if
(
!
match
)
{
getKeysFreeResult
(
keyidx
);
return
ACL_DENIED_KEY
;
}
}
}
getKeysFreeResult
(
keyidx
);
if
(
keyidx
)
getKeysFreeResult
(
keyidx
);
}
}
/* If we survived all the above checks, the user can execute the
/* If we survived all the above checks, the user can execute the
...
...
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