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
3f67b033
Unverified
Commit
3f67b033
authored
Aug 08, 2020
by
Wen Hui
Committed by
GitHub
Aug 08, 2020
Browse files
fix memory leak in ACLLoadFromFile error handling (#7623)
parent
1ef014ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/acl.c
View file @
3f67b033
...
@@ -1327,6 +1327,7 @@ sds ACLLoadFromFile(const char *filename) {
...
@@ -1327,6 +1327,7 @@ sds ACLLoadFromFile(const char *filename) {
errors
=
sdscatprintf
(
errors
,
errors
=
sdscatprintf
(
errors
,
"'%s:%d: username '%s' contains invalid characters. "
,
"'%s:%d: username '%s' contains invalid characters. "
,
server
.
acl_filename
,
linenum
,
argv
[
1
]);
server
.
acl_filename
,
linenum
,
argv
[
1
]);
sdsfreesplitres
(
argv
,
argc
);
continue
;
continue
;
}
}
...
...
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