Fix memory leak in emulated Cray/ALPS system