[krb5-auth-dialog] Move free'ing functions together



commit 1eadac644636641ff28e0abe9b6701cecee39dbb
Author: Guido Günther <agx sigxcpu org>
Date:   Fri Jun 18 20:25:23 2010 +0200

    Move free'ing functions together

 src/ka-dialog.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/ka-dialog.c b/src/ka-dialog.c
index 869d8fa..590bdad 100644
--- a/src/ka-dialog.c
+++ b/src/ka-dialog.c
@@ -877,12 +877,11 @@ ka_get_tgt_from_ccache (krb5_context context, krb5_creds *creds)
 				     get_principal_realm_data(principal), 0)) {
 		goto out_free_princ;
 	}
-
 	pattern.client = principal;
 	if (!krb5_cc_retrieve_cred(context, ccache, 0, &pattern, creds))
 		ret = TRUE;
-	krb5_free_principal(context, pattern.server);
 
+	krb5_free_principal(context, pattern.server);
 out_free_princ:
 	krb5_free_principal(context, principal);
 out:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]