From 07e1417ef01594bb007c63f0390ed63077b8c744 Mon Sep 17 00:00:00 2001 From: hwware Date: Mon, 18 May 2020 22:10:57 -0400 Subject: [PATCH] Redis-Benchmark: avoid potentical memmory leaking --- src/redis-benchmark.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/redis-benchmark.c b/src/redis-benchmark.c index 34295147d..46c1853f7 100644 --- a/src/redis-benchmark.c +++ b/src/redis-benchmark.c @@ -303,7 +303,7 @@ fail: else fprintf(stderr, "%s\n", hostsocket); freeReplyObject(reply); redisFree(c); - zfree(cfg); + freeRedisConfig(cfg); return NULL; } static void freeRedisConfig(redisConfig *cfg) {