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

plug tiny memory leak in slurmd/gres (just on reconfig)

parent 7fbf7a0e
No related branches found
No related tags found
No related merge requests found
...@@ -751,12 +751,13 @@ extern int gres_plugin_node_config_load(uint32_t cpu_cnt) ...@@ -751,12 +751,13 @@ extern int gres_plugin_node_config_load(uint32_t cpu_cnt)
struct stat config_stat; struct stat config_stat;
s_p_hashtbl_t *tbl; s_p_hashtbl_t *tbl;
gres_slurmd_conf_t **gres_array; gres_slurmd_conf_t **gres_array;
char *gres_conf_file = _get_gres_conf(); char *gres_conf_file;
rc = gres_plugin_init(); rc = gres_plugin_init();
if (gres_context_cnt == 0) if (gres_context_cnt == 0)
return SLURM_SUCCESS; return SLURM_SUCCESS;
gres_conf_file = _get_gres_conf();
slurm_mutex_lock(&gres_context_lock); slurm_mutex_lock(&gres_context_lock);
gres_cpu_cnt = cpu_cnt; gres_cpu_cnt = cpu_cnt;
if (stat(gres_conf_file, &config_stat) < 0) if (stat(gres_conf_file, &config_stat) < 0)
......
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