[PATCH] qcap: Use the global HeapAlloc() wrappers