Skip to content

Commit

Permalink
redis-benchmark: fix memory leak introduced by 346256f
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Aug 7, 2013
1 parent 346256f commit 36a0947
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/redis-benchmark.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ static void freeClient(client c) {
aeDeleteFileEvent(config.el,c->context->fd,AE_READABLE);
redisFree(c->context);
sdsfree(c->obuf);
zfree(c->randptr);
zfree(c);
config.liveclients--;
ln = listSearchKey(config.clients,c);
Expand Down

0 comments on commit 36a0947

Please sign in to comment.