redis-benchmark: fix memory leak introduced by 346256f

This commit is contained in:
antirez 2013-08-07 15:59:59 +02:00
parent 346256f933
commit 36a0947185

View File

@ -125,6 +125,7 @@ static void freeClient(client c) {
aeDeleteFileEvent(config.el,c->context->fd,AE_READABLE); aeDeleteFileEvent(config.el,c->context->fd,AE_READABLE);
redisFree(c->context); redisFree(c->context);
sdsfree(c->obuf); sdsfree(c->obuf);
zfree(c->randptr);
zfree(c); zfree(c);
config.liveclients--; config.liveclients--;
ln = listSearchKey(config.clients,c); ln = listSearchKey(config.clients,c);