Fixing memory leaks and plugging coverage holes.