we should check for `malloc` failures.