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

Define new function, slurm_auth_fini() to free all memory on completion.

parent d3cde4c3
No related branches found
No related tags found
No related merge requests found
...@@ -334,6 +334,14 @@ slurm_auth_init( void ) ...@@ -334,6 +334,14 @@ slurm_auth_init( void )
return retval; return retval;
} }
void
slurm_auth_fini( void )
{
if ( g_context )
slurm_auth_context_destroy( g_context );
free_slurm_conf( &conf );
}
/* /*
* Static bindings for the global authentication context. The test * Static bindings for the global authentication context. The test
......
...@@ -128,6 +128,11 @@ int slurm_auth_context_destroy( slurm_auth_context_t ctxt ); ...@@ -128,6 +128,11 @@ int slurm_auth_context_destroy( slurm_auth_context_t ctxt );
*/ */
int slurm_auth_init( void ); int slurm_auth_init( void );
/*
* Release memory associated with global context at termination
*/
void slurm_auth_fini( void );
/* /*
* Static bindings for the global authentication context. * Static bindings for the global authentication context.
*/ */
......
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