[PATCH v31 2/2] update to standard heap allocation functions