allocate: use calloc for debugMallocReset