use new free_cred_contents() routine
authorJohn Kohl <jtkohl@mit.edu>
Thu, 18 Oct 1990 15:40:10 +0000 (15:40 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Thu, 18 Oct 1990 15:40:10 +0000 (15:40 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1266 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/free/f_creds.c

index b85306a1835e584ffd24aee6513077db218ca5b1..6d62f61a725b03d57908041f14734d5f492d70bd 100644 (file)
@@ -23,18 +23,7 @@ void
 krb5_free_creds(val)
 krb5_creds *val;
 {
-    if (val->client)
-       krb5_free_principal(val->client);
-    if (val->server)
-       krb5_free_principal(val->server);
-    if (val->keyblock.contents)
-       xfree(val->keyblock.contents);
-    if (val->ticket.data)
-       xfree(val->ticket.data);
-    if (val->second_ticket.data)
-       xfree(val->second_ticket.data);
-    if (val->addresses)
-       krb5_free_address(val->addresses);
+    krb5_free_cred_contents(val);
     xfree(val);
     return;
 }