diff --git a/src/redis-benchmark.c b/src/redis-benchmark.c index 489a6b3a3..f66e82ae8 100644 --- a/src/redis-benchmark.c +++ b/src/redis-benchmark.c @@ -320,7 +320,7 @@ static redisConfig *getRedisConfig(const char *ip, int port, c = getRedisContext(ip, port, hostsocket); if (c == NULL) { freeRedisConfig(cfg); - return NULL; + exit(1); } redisAppendCommand(c, "CONFIG GET %s", "save"); redisAppendCommand(c, "CONFIG GET %s", "appendonly");