malloc double the memory