Fix memcheck-found leaks: one false positive from using new[], and one true