Handle malloc/calloc/realloc for size=0