krb5 commit: Fix memory leak in 'none' replay cache type

Greg Hudson ghudson at mit.edu
Mon Feb 25 14:04:18 EST 2019


https://github.com/krb5/krb5/commit/af2a3115cb8feb5174151b4b40223ae45aa9db17
commit af2a3115cb8feb5174151b4b40223ae45aa9db17
Author: Corene Casper <C.Casper at Dell.com>
Date:   Sat Feb 16 00:49:26 2019 -0500

    Fix memory leak in 'none' replay cache type
    
    Commit 0f06098e2ab419d02e89a1ca6bc9f2828f6bdb1e fixed part of a memory
    leak in the 'none' replay cache type by freeing the outer container,
    but we also need to free the mutex.
    
    [ghudson at mit.edu: wrote commit message]
    
    ticket: 8783
    tags: pullup
    target_version: 1.17-next
    target_version: 1.16-next

 src/lib/krb5/rcache/rc_none.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/lib/krb5/rcache/rc_none.c b/src/lib/krb5/rcache/rc_none.c
index e30aed0..0b2274d 100644
--- a/src/lib/krb5/rcache/rc_none.c
+++ b/src/lib/krb5/rcache/rc_none.c
@@ -50,6 +50,7 @@ krb5_rc_none_noargs(krb5_context ctx, krb5_rcache rc)
 static krb5_error_code KRB5_CALLCONV
 krb5_rc_none_close(krb5_context ctx, krb5_rcache rc)
 {
+    k5_mutex_destroy(&rc->lock);
     free (rc);
     return 0;
 }


More information about the cvs-krb5 mailing list