This appears to be pretty straightforward. I'm wondering if clearjobtab() should do something with the memory pointed to by filelists?