While working on #570 I was worried that you would start replacing `alloc_clear` with `xcalloc` because I did it already in #570 for some cases. This is one of them.