Fix a couple memleaks.