mirror of
https://github.com/fluencelabs/redis
synced 2025-03-31 14:51:04 +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;
|
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. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user