Allocated right size of memory