krb5_ktkdb_resolve.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8291
dc483132-0cff-0310-8789-
dd5450dbe970
+Tue Jun 11 19:27:22 1996 Ezra Peisach <epeisach@kangaroo.mit.edu>
+
+ * keytab.c (krb5_ktkdb_close): Free memory allocated by
+ krb5_ktkdb_resolve.
+
Mon May 20 18:02:07 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
* kdb_dbm.c (krb5_dbm_db_create): Remove vestigal ODBM support.
krb5_context context;
krb5_keytab kt;
{
- /* no state outstanding... */
+ /*
+ * This routine is responsible for freeing all memory allocated
+ * for this keytab. There are no system resources that need
+ * to be freed nor are there any open files.
+ *
+ * This routine should undo anything done by krb5_ktkdb_resolve().
+ */
+
+ krb5_xfree(kt->data);
+ kt->ops = 0;
+ krb5_xfree(kt);
+
return 0;
}