C++ (or C) Malloc Resources