From 8dd60dfa0767ee4d085f73cf511391f178431e9f Mon Sep 17 00:00:00 2001 From: Moe Jette <jette1@llnl.gov> Date: Thu, 3 Apr 2008 16:55:27 +0000 Subject: [PATCH] Fix bug in allocating resources within cons_res when only testing --- src/plugins/select/cons_res/select_cons_res.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/select/cons_res/select_cons_res.c b/src/plugins/select/cons_res/select_cons_res.c index 75ebea275d7..a8c2e70ca19 100644 --- a/src/plugins/select/cons_res/select_cons_res.c +++ b/src/plugins/select/cons_res/select_cons_res.c @@ -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(sh_tasks); xfree(al_tasks); -- GitLab