Revert some weird, maybe inadvertent, change; better realloc error handling.