Revert "Remove usage of malloc in favor of new"

This reverts commit b992b450093546d275d2da4b544a611700536e29.

The build's address sanitizer is complaining that we're calling delete[] on a 3 byte region allocated with malloc().

Change-Id: I03e667e1b64a9b298607d0709747c02c8f7d0da6
6 files changed