ghudson patch for resource leak krb5-libs/769
authorKen Raeburn <raeburn@mit.edu>
Thu, 7 Oct 1999 22:01:28 +0000 (22:01 +0000)
committerKen Raeburn <raeburn@mit.edu>
Thu, 7 Oct 1999 22:01:28 +0000 (22:01 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11858 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb4/ChangeLog
src/lib/krb4/rd_svc_key.c

index 30c0c8e5ee9c0bbe0406dfb0e4410b4d9492749a..f43b3aa1ec85505e6190a842beb840fc33d8d64d 100644 (file)
@@ -1,3 +1,9 @@
+1999-10-07  Ken Raeburn  <raeburn@mit.edu>
+
+       * rd_svc_key.c (krb54_get_service_keyblock): Close keytab before
+       returning in success case.  Patch from Greg Hudson
+       <ghudson@mit.edu>.
+
 1999-08-26  Danilo Almeida  <dalmeida@mit.edu>
 
        * memcache.c (change_cache): Use PostMessage instead of SendMessage
index 9bcda29ea32c197719988270e1e38d8fe8fce384..831becdf02d96565a51c8ad9e4ce0a7ddc32c97f 100644 (file)
@@ -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)