diff --git a/src/acl.c b/src/acl.c index e152e52a..171db43a 100644 --- a/src/acl.c +++ b/src/acl.c @@ -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. */