Commit 291e6bcc authored by antirez's avatar antirez
Browse files

ACL: remove leak in ACLLoadFromFile().

parent 91aecf01
...@@ -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. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment