Fix memory leak

Requires priority/multifactor plugin with multiple partitions per job