normalize_alleles: Use malloc instead of variable-length automatic array.