From 95aa8584bcdb04a22d09ac670ee91e6526fe76e8 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Tue, 9 Oct 1990 17:05:17 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1180 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/free/f_kdc_req.c | 40 +++++++++++++++++++++++++++++++++++ src/lib/krb5/free/f_tickets.c | 32 ++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 src/lib/krb5/free/f_kdc_req.c create mode 100644 src/lib/krb5/free/f_tickets.c diff --git a/src/lib/krb5/free/f_kdc_req.c b/src/lib/krb5/free/f_kdc_req.c new file mode 100644 index 000000000..62f43eacd --- /dev/null +++ b/src/lib/krb5/free/f_kdc_req.c @@ -0,0 +1,40 @@ +/* + * $Source$ + * $Author$ + * + * Copyright 1990 by the Massachusetts Institute of Technology. + * + * For copying and distribution information, please see the file + * . + * + * krb5_free_kdc_req() + */ + +#if !defined(lint) && !defined(SABER) +static char rcsid_f_kdc_req_c [] = +"$Id$"; +#endif /* !lint & !SABER */ + +#include +#include +#include + +void +krb5_free_kdc_req(val) +krb5_kdc_req *val; +{ + if (val->padata.data) + xfree(val->padata.data); + if (val->client) + krb5_free_principal(val->client); + if (val->server) + krb5_free_principal(val->server); + if (val->addresses) + krb5_free_address(val->addresses); + if (val->authorization_data) + krb5_free_authdata(val->authorization_data); + if (val->second_ticket) + krb5_free_tickets(val->second_ticket); + xfree(val); + return; +} diff --git a/src/lib/krb5/free/f_tickets.c b/src/lib/krb5/free/f_tickets.c new file mode 100644 index 000000000..8ee4c5b53 --- /dev/null +++ b/src/lib/krb5/free/f_tickets.c @@ -0,0 +1,32 @@ +/* + * $Source$ + * $Author$ + * + * Copyright 1990 by the Massachusetts Institute of Technology. + * + * For copying and distribution information, please see the file + * . + * + * krb5_free_tickets() + */ + +#if !defined(lint) && !defined(SABER) +static char rcsid_f_tickets_c [] = +"$Id$"; +#endif /* !lint & !SABER */ + +#include +#include +#include + +void +krb5_free_tickets(val) +krb5_ticket **val; +{ + register krb5_ticket **temp; + + for (temp = val; *temp; temp++) + krb5_free_ticket(*temp); + xfree(val); + return; +} -- 2.26.2