Memory leaks

I discovered a few memory leaks thatI have now taken care of. Nothing
exciting to see here.