[PATCH 1/9] d2d1: Use CRT memory allocation functions.