Remove usage of malloc in favor of new

This reverts commit b2116869ba878222d607807be594366b6e9392f7.

Test: unittests
Bug: 24469748
Change-Id: I82de5a12cf851ffdacc2c7969a2429746ba7a772
Signed-off-by: Casey Dahlin <sadmac@google.com>
8 files changed