Skip to content

Commit a9200ed

Browse files
authored
Merge pull request redis#7279 from hwware/benchmark_leak_fix
Redis-Benchmark: avoid potentical memmory leaking
2 parents 9fba05f + 07e1417 commit a9200ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/redis-benchmark.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ static redisConfig *getRedisConfig(const char *ip, int port,
303303
else fprintf(stderr, "%s\n", hostsocket);
304304
freeReplyObject(reply);
305305
redisFree(c);
306-
zfree(cfg);
306+
freeRedisConfig(cfg);
307307
return NULL;
308308
}
309309
static void freeRedisConfig(redisConfig *cfg) {

0 commit comments

Comments
 (0)