mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 08:00:49 +00:00
ACL: remove leak in ACLLoadFromFile().
This commit is contained in:
parent
91aecf0138
commit
291e6bccf3
@ -1148,6 +1148,7 @@ sds ACLLoadFromFile(const char *filename) {
|
||||
int totlines;
|
||||
sds *lines, errors = sdsempty();
|
||||
lines = sdssplitlen(acls,strlen(acls),"\n",1,&totlines);
|
||||
sdsfree(acls);
|
||||
|
||||
/* We need a fake user to validate the rules before making changes
|
||||
* to the real user mentioned in the ACL line. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user