Fix some modest memory leaks.