* init_ctx.c (krb5_free_context): Free kt_default_name if it's
authorTom Yu <tlyu@mit.edu>
Wed, 13 Nov 1996 03:37:07 +0000 (03:37 +0000)
committerTom Yu <tlyu@mit.edu>
Wed, 13 Nov 1996 03:37:07 +0000 (03:37 +0000)
non-NULL.

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

src/lib/krb5/krb/ChangeLog
src/lib/krb5/krb/init_ctx.c

index caffd097d496481a9c7148af053ad63ba751cdde..e24d782fcb24778dfd9e85fbeb0302cc05a99928 100644 (file)
@@ -1,3 +1,8 @@
+Tue Nov 12 22:07:33 1996  Tom Yu  <tlyu@mit.edu>
+
+       * init_ctx.c (krb5_free_context): Free kt_default_name if it's
+       non-NULL.
+
 Sat Nov  9 14:19:28 1996  Ezra Peisach  <epeisach@mit.edu>
 
        * Makefile.in (check-unix): Invoking t_ser requires that
index 19aaf66424fe12cab3d2fa5982cba9dcb23b5f3c..e3ed8fe0e0154a469a3866aeb14bdc7533f61a98 100644 (file)
@@ -154,6 +154,8 @@ krb5_free_context(ctx)
      if (ctx->ser_ctx_count && ctx->ser_ctx)
         free(ctx->ser_ctx);
 
+     if (ctx->kt_default_name)
+         free(ctx->kt_default_name);
      ctx->magic = 0;
      free(ctx);
 }