Solving a memory leak when job has a partition list