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

Plug memory leaks by explicitly freeing slurm_credential associated with

job, step, node, and partition info.
Add new function to free slurm_credential from RPC response.
parent 7e235f21
No related branches found
No related tags found
No related merge requests found
......@@ -908,6 +908,13 @@ void slurm_free_msg(slurm_msg_t * msg)
xfree(msg);
}
/*
* Free just the credential of a message
*/
void slurm_free_cred(void *cred)
{
(void) g_slurm_auth_destroy(cred);
}
#if _DEBUG
......
......@@ -426,4 +426,5 @@ int slurm_send_only_node_msg(slurm_msg_t * request_msg);
/* Slurm message functions */
void slurm_free_msg(slurm_msg_t * msg);
void slurm_free_cred(void *cred);
#endif
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