fzzbt/radix — pull request #5 by bpowers (2012-04-25 05:13:26+00:00)
Title: memory leak fixes & make things more go-like

when looping like so:

for msgs := <-self.redisChan {
redis, err := radix.NewClient(radix.Configuration{
Address: self.Redis.Netaddr,
Database: self.Redis.Db,
PoolSize: 1,
})
if err != nil {
log.Printf("redis: %v\n", err)
continue
}
redis.Close()
}

memory usage would grow to several hundred MB. I suspect this was due to a failure of go's escape analysis, but still, this series fixes it and has some general cleanups.