When creating job arrays the job specification files for each elements
are hard links to the first element specification files. If the
controller fails to make the links the files are copied instead.
Fix error handling for job array create failure

Fix error handling for job array create failure due to inability to copy
job files (script and environment).
See bug 1077
Fix memory leak

Introduced in commit dc7a1fcace85eca1c877dce575d320e975806d7d
Merge branch 'slurm-14.03'

Conflicts:
	src/slurmctld/job_mgr.c