Permalink
Browse files

fix redis-benchmark memory leak

  • Loading branch information...
1 parent 36e6637 commit 59132e42125c43299c428e86f9107493e173883e @anydot anydot committed Feb 26, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/redis-benchmark.c
@@ -196,6 +196,8 @@ static void readHandler(aeEventLoop *el, int fd, void *privdata, int mask) {
exit(1);
}
+ freeReplyObject(reply);
+
if (config.requests_finished < config.requests)
config.latency[config.requests_finished++] = c->latency;
c->pending--;

0 comments on commit 59132e4

Please sign in to comment.