more memory allocation wrapper conversion (issue #6365)