Skip to content
Snippets Groups Projects
Commit 8dd60dfa authored by Moe Jette's avatar Moe Jette
Browse files

Fix bug in allocating resources within cons_res when only testing

parent 857c2264
No related branches found
No related tags found
No related merge requests found
...@@ -2505,7 +2505,7 @@ static int _job_test(struct job_record *job_ptr, bitstr_t *bitmap, ...@@ -2505,7 +2505,7 @@ static int _job_test(struct job_record *job_ptr, bitstr_t *bitmap,
} }
} }
} }
if ((error_code != SLURM_SUCCESS) || (mode == SELECT_MODE_WILL_RUN)) { if ((error_code != SLURM_SUCCESS) || (mode != SELECT_MODE_RUN_NOW)) {
xfree(busy_rows); xfree(busy_rows);
xfree(sh_tasks); xfree(sh_tasks);
xfree(al_tasks); xfree(al_tasks);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment