Memory corruption while using alignments for memory allocation.