mirror of
https://github.com/fluencelabs/redis
synced 2025-04-04 16:51:12 +00:00
redis-cli: fix big keys search when the key no longer exist.
The code freed a reply object that was never created, resulting in a segfault every time randomkey returned a key that was deleted before we queried it for size.
This commit is contained in:
parent
8eff339ca4
commit
2debce325b
@ -1324,7 +1324,6 @@ static void findBigKeys(void) {
|
|||||||
} else if (!strcmp(reply2->str,"none")) {
|
} else if (!strcmp(reply2->str,"none")) {
|
||||||
freeReplyObject(reply1);
|
freeReplyObject(reply1);
|
||||||
freeReplyObject(reply2);
|
freeReplyObject(reply2);
|
||||||
freeReplyObject(reply3);
|
|
||||||
continue;
|
continue;
|
||||||
} else {
|
} else {
|
||||||
fprintf(stderr, "Unknown key type '%s' for key '%s'\n",
|
fprintf(stderr, "Unknown key type '%s' for key '%s'\n",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user