Remove vestigial function
Various minor possible bug fixes as reported by clang tool
Fix for one-time memory leak at slurmctld shutdown time
Fix for invalid memory reference

due to multiple free calls caused by job arrays submitted to
multiple partitions. The root cause is the job priority array
of the original job being re-used by the subsequent job array
entries. A similar problem that could be induced by the user
specifying a job accounting frequency when submitting a job
array is also fixed.
bug 401