update copyright
authorJohn Kohl <jtkohl@mit.edu>
Wed, 20 Feb 1991 15:21:56 +0000 (15:21 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Wed, 20 Feb 1991 15:21:56 +0000 (15:21 +0000)
free the server if necessary.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1737 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/free/f_ticket.c

index 2219bb7b618b9c3ab3575079da2e7ae6493ae76c..b4ae9f3f0a8f5e972ed405a2e4b6d0601ea2cd9d 100644 (file)
@@ -2,7 +2,8 @@
  * $Source$
  * $Author$
  *
- * Copyright 1990 by the Massachusetts Institute of Technology.
+ * Copyright 1990,1991 by the Massachusetts Institute of Technology.
+ * All Rights Reserved.
  *
  * For copying and distribution information, please see the file
  * <krb5/copyright.h>.
@@ -23,6 +24,8 @@ void
 krb5_free_ticket(val)
 krb5_ticket *val;
 {
+    if (val->server)
+       krb5_free_principal(val->server);
     if (val->enc_part.ciphertext.data)
        xfree(val->enc_part.ciphertext.data);
     if (val->enc_part2)