From 5ee21d18b59ce0f97de8a35dc90bb609b00e85b7 Mon Sep 17 00:00:00 2001
From: Moe Jette <jette1@llnl.gov>
Date: Thu, 3 Aug 2006 16:38:08 +0000
Subject: [PATCH] Minor restructuring of code for clarity, no change in logic.

---
 src/common/slurm_auth.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/common/slurm_auth.c b/src/common/slurm_auth.c
index efa1014a2b8..b7894e19a96 100644
--- a/src/common/slurm_auth.c
+++ b/src/common/slurm_auth.c
@@ -290,7 +290,6 @@ slurm_auth_init( void )
 	if (strcmp(auth_type, "auth/dummy") == 0) {
 		info( "warning: %s plugin selected", auth_type);
 		auth_dummy = true;
-		xfree(auth_type);
 		goto done;
 	}
 
@@ -298,7 +297,6 @@ slurm_auth_init( void )
         if ( g_context == NULL ) {
                 error( "cannot create a context for %s", auth_type );
                 retval = SLURM_ERROR;
-		xfree(auth_type);
                 goto done;
         }
         
@@ -309,9 +307,9 @@ slurm_auth_init( void )
                 g_context = NULL;
                 retval = SLURM_ERROR;
         }
-	xfree(auth_type);
 
  done:
+	xfree(auth_type);
         slurm_mutex_unlock( &context_lock );
         return retval;
 }
-- 
GitLab