Redis-Benchmark: avoid potentical memmory leaking

This commit is contained in:
hwware 2020-05-18 22:10:57 -04:00
parent bf3a67be43
commit 07e1417ef0

View File

@ -303,7 +303,7 @@ fail:
else fprintf(stderr, "%s\n", hostsocket); else fprintf(stderr, "%s\n", hostsocket);
freeReplyObject(reply); freeReplyObject(reply);
redisFree(c); redisFree(c);
zfree(cfg); freeRedisConfig(cfg);
return NULL; return NULL;
} }
static void freeRedisConfig(redisConfig *cfg) { static void freeRedisConfig(redisConfig *cfg) {