14.5.2 Allocating Memory

Although the Windows versions of the C run-time libraries supply replacements for such memory-allocation functions as malloc and free, you should instead use Windows-specific memory-allocation functions. For example, although malloc allocates a fixed memory object in the local heap, the Windows LocalAlloc function allows you to define the object as movable in the local heap.