]> git.saurik.com Git - redis.git/commitdiff
fix redis-benchmark memory leak
authorPremysl Hruby <dfenze@gmail.com>
Sun, 26 Feb 2012 09:01:27 +0000 (10:01 +0100)
committerPremysl Hruby <dfenze@gmail.com>
Sun, 26 Feb 2012 09:01:27 +0000 (10:01 +0100)
src/redis-benchmark.c

index 36f27540fe6e0e685701a4edad772f685e322466..19eb49152c749a00774dda1a3a4d9d5681024865 100644 (file)
@@ -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--;