mirror of
https://github.com/fluencelabs/redis
synced 2025-06-20 04:26:31 +00:00
ACL: fix memory leak when key patterns no match
This commit is contained in:
@ -570,9 +570,12 @@ int ACLCheckCommandPerm(client *c) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!match) return ACL_DENIED_KEY;
|
if (!match) {
|
||||||
}
|
|
||||||
getKeysFreeResult(keyidx);
|
getKeysFreeResult(keyidx);
|
||||||
|
return ACL_DENIED_KEY;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (keyidx) getKeysFreeResult(keyidx);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If we survived all the above checks, the user can execute the
|
/* If we survived all the above checks, the user can execute the
|
||||||
|
Reference in New Issue
Block a user