krb5 commit: Fix memory leak in macOS 11 ccache client

ghudson at mit.edu ghudson at mit.edu
Fri Jan 12 19:23:46 EST 2024


https://github.com/krb5/krb5/commit/52fe67623b7205d91ceac855651e8c17f56b10c8
commit 52fe67623b7205d91ceac855651e8c17f56b10c8
Author: Anthony Sottile <anthony.sottile at 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 at mit.edu: wrote commit message]
    
    ticket: 9109
    tags: pullup
    target_version: 1.21-next

 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;
 }
 


More information about the cvs-krb5 mailing list