Commit 9564ed7c authored by hwware's avatar hwware Committed by antirez
Browse files

Redis-Benchmark: avoid potentical memmory leaking

parent 2e418274
...@@ -303,7 +303,7 @@ fail: ...@@ -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) {
......
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