[31330] in CVS-changelog-for-Kerberos-V5

home help back first fref pref prev next nref lref last post

krb5 commit [krb5-1.21]: Fix memory leak in macOS 11 ccache client

daemon@ATHENA.MIT.EDU (ghudson@mit.edu)
Mon Jun 24 19:51:14 2024

From: ghudson@mit.edu
To: cvs-krb5@mit.edu
Message-Id: <20240624235109.0C71C101A5F@krbdev.mit.edu>
Date: Mon, 24 Jun 2024 19:51:09 -0400 (EDT)
MIME-Version: 1.0
Reply-To: krbdev@mit.edu
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cvs-krb5-bounces@mit.edu

https://github.com/krb5/krb5/commit/c9a83ad0788163bec4969a8975f0d3fb748689a6
commit c9a83ad0788163bec4969a8975f0d3fb748689a6
Author: Anthony Sottile <anthony.sottile@sentry.io>
Date:   Fri Jan 12 19:10:03 2024 -0500

    Fix memory leak in macOS 11 ccache client
    
    In get_primary_name(), use the proper function to free conn.
    
    [ghudson@mit.edu: wrote commit message]
    
    (cherry picked from commit 52fe67623b7205d91ceac855651e8c17f56b10c8)
    
    ticket: 9109
    version_fixed: 1.21.3

 src/lib/krb5/ccache/cc_api_macos.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/krb5/ccache/cc_api_macos.c b/src/lib/krb5/ccache/cc_api_macos.c
index 3bf30c9fd..34b1c350f 100644
--- a/src/lib/krb5/ccache/cc_api_macos.c
+++ b/src/lib/krb5/ccache/cc_api_macos.c
@@ -219,7 +219,7 @@ cleanup:
     if (reply != NULL)
         xpc_release(reply);
     if (conn != NULL)
-        xpc_connection_cancel(conn);
+        xpc_release(conn);
     return ret;
 }
 
_______________________________________________
cvs-krb5 mailing list
cvs-krb5@mit.edu
https://mailman.mit.edu/mailman/listinfo/cvs-krb5

home help back first fref pref prev next nref lref last post