diff --git a/src/redis-cli.c b/src/redis-cli.c index 91c284d45a..460750b4b0 100644 --- a/src/redis-cli.c +++ b/src/redis-cli.c @@ -7762,7 +7762,10 @@ static int clusterManagerCommandAddNode(int argc, char **argv) { } } - if (reply) freeReplyObject(reply); + if (reply) { + freeReplyObject(reply); + reply = NULL; + } // Send CLUSTER MEET command to the new node clusterManagerLogInfo(">>> Send CLUSTER MEET to node %s:%d to make it "