Unchecked malloc return value

This malloc isn't being checked for a NULL result, and while unlikely, it still fails our security/standards static analysis.