From: John Kohl Date: Thu, 18 Oct 1990 15:40:10 +0000 (+0000) Subject: use new free_cred_contents() routine X-Git-Tag: krb5-1.0-alpha2~145 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1c0dea0e0cbded09ab36f62566ce694fecdbcd2d;p=krb5.git use new free_cred_contents() routine git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1266 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/free/f_creds.c b/src/lib/krb5/free/f_creds.c index b85306a18..6d62f61a7 100644 --- a/src/lib/krb5/free/f_creds.c +++ b/src/lib/krb5/free/f_creds.c @@ -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; }