From: Tom Yu Date: Wed, 13 Nov 1996 03:37:07 +0000 (+0000) Subject: * init_ctx.c (krb5_free_context): Free kt_default_name if it's X-Git-Tag: krb5-1.0-freeze1~33 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fcc425f6c56ba3756f6915dcb06cebaa56d8c994;p=krb5.git * init_ctx.c (krb5_free_context): Free kt_default_name if it's non-NULL. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9396 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index caffd097d..e24d782fc 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,8 @@ +Tue Nov 12 22:07:33 1996 Tom Yu + + * init_ctx.c (krb5_free_context): Free kt_default_name if it's + non-NULL. + Sat Nov 9 14:19:28 1996 Ezra Peisach * Makefile.in (check-unix): Invoking t_ser requires that diff --git a/src/lib/krb5/krb/init_ctx.c b/src/lib/krb5/krb/init_ctx.c index 19aaf6642..e3ed8fe0e 100644 --- a/src/lib/krb5/krb/init_ctx.c +++ b/src/lib/krb5/krb/init_ctx.c @@ -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); }