Changed C++ new to C malloc().