expected = xnmalloc (cnt, sizeof *expected);
heights = xnmalloc (cnt, sizeof *heights);
new_heights = xnmalloc (cnt, sizeof *new_heights);
expected = xnmalloc (cnt, sizeof *expected);
heights = xnmalloc (cnt, sizeof *heights);
new_heights = xnmalloc (cnt, sizeof *new_heights);