nicolasff/phpredis — Issue #74: sAdd memory leak
Author: lalex
Created: 2011-11-02 13:16:31+00:00
State: open

I've found some memory leak while sAdd:

connect('127.0.0.1', 6379);
for ($i=0; $i<100000; $i++) {
$redis->sAdd('key', 1);
}
$redis->close();
unset($redis);
printf("%5s: %8d bytes\n", "End", memory_get_usage(true));
?>
And result is:

Start: 325240 bytes
End: 9125404 bytes