antirez/redis — Issue #256: Memory leak in clientCommand
Author: jokea
Created: 2011-12-19 02:54:26+00:00
State: open

There's a memory leak in clientCommand:

> info
...
used_memory:726096
used_memory_human:709.08K
...

> 10000 client list

> info
...
used_memory:3286376
used_memory_human:3.13M
...

It is caused by getAllClientsInfoString() in networking.c:
960 o = sdscatsds(o,getClientInfoString(client));
the string returned by getClientInfoString() should be freed.