malloc, calloc initializes memory to zero, so the allocation of physical memory is not deferred. malloc may result in dropped packets, using calloc usually prevents this. calloc, the actual allocation of physical memory may be deferred until the area is accessed.