From 1070edb1c0fd159f6fb870535272a56fe236a1ab Mon Sep 17 00:00:00 2001 From: Moe Jette <jette1@llnl.gov> Date: Wed, 1 Nov 2006 21:01:45 +0000 Subject: [PATCH] patch.1.2.0-pre5.061101.cr_state from palermo. --- src/plugins/select/cons_res/select_cons_res.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/plugins/select/cons_res/select_cons_res.c b/src/plugins/select/cons_res/select_cons_res.c index 943acf5936f..4e12eef9bac 100644 --- a/src/plugins/select/cons_res/select_cons_res.c +++ b/src/plugins/select/cons_res/select_cons_res.c @@ -830,12 +830,16 @@ extern int fini(void) list_destroy(select_cr_job_list); select_cr_job_list = NULL; } - select_cr_job_list = NULL; - xfree(select_node_ptr); + + _xfree_select_nodes(select_node_ptr, select_node_cnt); select_node_ptr = NULL; - select_node_cnt = -1; + select_node_cnt = 0; xfree(cr_node_hash_table); + _xfree_select_nodes(prev_select_node_ptr, prev_select_node_cnt); + prev_select_node_ptr = NULL; + prev_select_node_cnt = 0; + verbose("%s shutting down ...", plugin_name); return SLURM_SUCCESS; } -- GitLab