The size of data[] is not all the available mem, only the required mem.