Use C memory allocation instead of C++, so std::bad_alloc exception handling must not be done