A few routines had unchecked mallocs. One was unused, so remove it but add fallback code for the rest of them.