From 1d830bc9bec5bcdb9511483901cb1767370ee8ae Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Thu, 7 Oct 1999 22:01:28 +0000 Subject: [PATCH] ghudson patch for resource leak krb5-libs/769 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11858 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb4/ChangeLog | 6 ++++++ src/lib/krb4/rd_svc_key.c | 1 + 2 files changed, 7 insertions(+) diff --git a/src/lib/krb4/ChangeLog b/src/lib/krb4/ChangeLog index 30c0c8e5e..f43b3aa1e 100644 --- a/src/lib/krb4/ChangeLog +++ b/src/lib/krb4/ChangeLog @@ -1,3 +1,9 @@ +1999-10-07 Ken Raeburn + + * rd_svc_key.c (krb54_get_service_keyblock): Close keytab before + returning in success case. Patch from Greg Hudson + . + 1999-08-26 Danilo Almeida * memcache.c (change_cache): Use PostMessage instead of SendMessage diff --git a/src/lib/krb4/rd_svc_key.c b/src/lib/krb4/rd_svc_key.c index 9bcda29ea..831becdf0 100644 --- a/src/lib/krb4/rd_svc_key.c +++ b/src/lib/krb4/rd_svc_key.c @@ -194,6 +194,7 @@ krb54_get_service_keyblock(service,instance,realm,kvno,file,keyblock) &kt_entry.key, keyblock); krb5_kt_free_entry(krb5__krb4_context, &kt_entry); + krb5_kt_close (krb5__krb4_context, kt_id); errout: if (princ) -- 2.26.2