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

Free allocated switch node info, fixes memory leak.

parent 3d491913
No related branches found
No related tags found
No related merge requests found
...@@ -1009,6 +1009,7 @@ _job_still_running(uint32_t job_id) ...@@ -1009,6 +1009,7 @@ _job_still_running(uint32_t job_id)
static int static int
_epilog_complete(uint32_t jobid, int rc) _epilog_complete(uint32_t jobid, int rc)
{ {
int ret = SLURM_SUCCESS;
slurm_msg_t msg; slurm_msg_t msg;
epilog_complete_msg_t req; epilog_complete_msg_t req;
...@@ -1025,11 +1026,12 @@ _epilog_complete(uint32_t jobid, int rc) ...@@ -1025,11 +1026,12 @@ _epilog_complete(uint32_t jobid, int rc)
if (slurm_send_only_controller_msg(&msg) < 0) { if (slurm_send_only_controller_msg(&msg) < 0) {
error("Unable to send epilog complete message: %m"); error("Unable to send epilog complete message: %m");
return SLURM_ERROR; ret = SLURM_ERROR;
} } else
debug ("Job %u: sent epilog complete msg: rc = %d", jobid, rc); debug ("Job %u: sent epilog complete msg: rc = %d", jobid, rc);
return SLURM_SUCCESS; switch_g_free_node_info(&req.switch_nodeinfo);
return ret;
} }
static void static void
......
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