Commit 59132e42 authored by Premysl Hruby's avatar Premysl Hruby
Browse files

fix redis-benchmark memory leak

parent 36e6637d
...@@ -196,6 +196,8 @@ static void readHandler(aeEventLoop *el, int fd, void *privdata, int mask) { ...@@ -196,6 +196,8 @@ static void readHandler(aeEventLoop *el, int fd, void *privdata, int mask) {
exit(1); exit(1);
} }
freeReplyObject(reply);
if (config.requests_finished < config.requests) if (config.requests_finished < config.requests)
config.latency[config.requests_finished++] = c->latency; config.latency[config.requests_finished++] = c->latency;
c->pending--; c->pending--;
......
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