C++ (or C) Memory-management Resources