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

Fix potential memory leak.

parent 817d90c3
No related branches found
No related tags found
No related merge requests found
...@@ -1648,10 +1648,20 @@ void make_node_idle(struct node_record *node_ptr, ...@@ -1648,10 +1648,20 @@ void make_node_idle(struct node_record *node_ptr,
/* node_fini - free all memory associated with node records */ /* node_fini - free all memory associated with node records */
void node_fini(void) void node_fini(void)
{ {
int i;
if (config_list) { if (config_list) {
list_destroy(config_list); list_destroy(config_list);
config_list = NULL; config_list = NULL;
} }
for (i=0; i< node_record_count; i++)
xfree(node_record_table_ptr[i].reason);
FREE_NULL_BITMAP(idle_node_bitmap);
FREE_NULL_BITMAP(avail_node_bitmap);
FREE_NULL_BITMAP(share_node_bitmap);
xfree(node_record_table_ptr); xfree(node_record_table_ptr);
xfree(node_hash_table); xfree(node_hash_table);
} }
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