COMP: fix some leaks.