Memory leak fixes from Chere Zhou <czhou@isilon.com>.