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);
freeReplyObject(reply);
redisFree(c);
zfree(cfg);
freeRedisConfig(cfg);
return NULL;
}
static void freeRedisConfig(redisConfig *cfg) {