mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 16:10:50 +00:00
ACL: fix memory leak when key patterns no match
This commit is contained in:
parent
8fc0079366
commit
0de83bcc62
@ -570,9 +570,12 @@ int ACLCheckCommandPerm(client *c) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!match) return ACL_DENIED_KEY;
|
||||
if (!match) {
|
||||
getKeysFreeResult(keyidx);
|
||||
return ACL_DENIED_KEY;
|
||||
}
|
||||
}
|
||||
getKeysFreeResult(keyidx);
|
||||
if (keyidx) getKeysFreeResult(keyidx);
|
||||
}
|
||||
|
||||
/* If we survived all the above checks, the user can execute the
|
||||
|
Loading…
x
Reference in New Issue
Block a user