mirror of
https://github.com/fluencelabs/redis
synced 2025-04-03 00:01:04 +00:00
redis-benchmark: fix memory leak introduced by 346256f
This commit is contained in:
parent
346256f933
commit
36a0947185
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user