According to the documentation of sched_getaffinity/sched_setaffinity
the second argument has to be cpu_mask_size = sizeof(cpu_set_t).
with-cpu-affinity-mask frees the alien array after use.
As much as I see the bug is closed.