Commit 07e1417e authored by hwware's avatar hwware
Browse files

Redis-Benchmark: avoid potentical memmory leaking

parent bf3a67be
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment