Skip to content

Commit

Permalink
Fix memory leak of the slot_nodes variable (redis#13256)
Browse files Browse the repository at this point in the history
  • Loading branch information
LuMingYinDetect committed May 11, 2024
1 parent 8a05f00 commit 541c9cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/redis-cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -5978,6 +5978,7 @@ static int clusterManagerFixSlotsCoverage(char *all_slots) {
if (!clusterManagerCheckRedisReply(n, reply, NULL)) {
fixed = -1;
if (reply) freeReplyObject(reply);
if (slot_nodes) listRelease(slot_nodes);
goto cleanup;
}
assert(reply->type == REDIS_REPLY_ARRAY);
Expand Down

0 comments on commit 541c9cf

Please sign in to comment.