From 38d8cfe21cae4d61804b3c5acb4a048a4f813679 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Wed, 20 Feb 1991 18:20:44 +0000 Subject: [PATCH] use free_cred_contents routine git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1749 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/ccache/stdio/scc_nseq.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/lib/krb5/ccache/stdio/scc_nseq.c b/src/lib/krb5/ccache/stdio/scc_nseq.c index 0f0a0f57e..5e8f94f6a 100644 --- a/src/lib/krb5/ccache/stdio/scc_nseq.c +++ b/src/lib/krb5/ccache/stdio/scc_nseq.c @@ -97,20 +97,7 @@ krb5_scc_next_cred(id, cursor, creds) lose: if (kret != KRB5_OK) { - if (creds->client) - krb5_free_principal(creds->client); - if (creds->server) - krb5_free_principal(creds->server); - if (creds->keyblock.contents) - xfree(creds->keyblock.contents); - if (creds->ticket.data) - xfree(creds->ticket.data); - if (creds->second_ticket.data) - xfree(creds->second_ticket.data); - if (creds->addresses) - krb5_free_address(creds->addresses); - if (creds->authdata) - krb5_free_authdata (creds->authdata); + krb5_free_cred_contents(creds); } MAYBE_CLOSE (id, kret); return kret; -- 2.26.2