From: Premysl Hruby Date: Sun, 26 Feb 2012 09:01:27 +0000 (+0100) Subject: fix redis-benchmark memory leak X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/59132e42125c43299c428e86f9107493e173883e fix redis-benchmark memory leak --- diff --git a/src/redis-benchmark.c b/src/redis-benchmark.c index 36f27540..19eb4915 100644 --- a/src/redis-benchmark.c +++ b/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--;