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
291e6bcc
Commit
291e6bcc
authored
Feb 21, 2019
by
antirez
Browse files
ACL: remove leak in ACLLoadFromFile().
parent
91aecf01
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/acl.c
View file @
291e6bcc
...
@@ -1148,6 +1148,7 @@ sds ACLLoadFromFile(const char *filename) {
...
@@ -1148,6 +1148,7 @@ sds ACLLoadFromFile(const char *filename) {
int
totlines
;
int
totlines
;
sds
*
lines
,
errors
=
sdsempty
();
sds
*
lines
,
errors
=
sdsempty
();
lines
=
sdssplitlen
(
acls
,
strlen
(
acls
),
"
\n
"
,
1
,
&
totlines
);
lines
=
sdssplitlen
(
acls
,
strlen
(
acls
),
"
\n
"
,
1
,
&
totlines
);
sdsfree
(
acls
);
/* We need a fake user to validate the rules before making changes
/* We need a fake user to validate the rules before making changes
* to the real user mentioned in the ACL line. */
* to the real user mentioned in the ACL line. */
...
...
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