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

Relocate partition freeing logic to outside of job find loop.

This insures partition gets set free once no matter how many
jobs are found.
parent 2204b10d
No related branches found
No related tags found
No related merge requests found
...@@ -384,6 +384,9 @@ static void _term_agent(bgl_update_t *bgl_update_ptr) ...@@ -384,6 +384,9 @@ static void _term_agent(bgl_update_t *bgl_update_ptr)
(void) _remove_job(job_id); (void) _remove_job(job_id);
} }
/* Free the partition */
bgl_free_partition(bgl_update_ptr->bgl_part_id);
/* Change the block's owner */ /* Change the block's owner */
_set_part_owner(bgl_update_ptr->bgl_part_id, USER_NAME); _set_part_owner(bgl_update_ptr->bgl_part_id, USER_NAME);
......
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