Fix a few miscellaneous leaks