Fix some minor memory leaks