krb5 commit [krb5-1.21]: Fix memory leak in macOS 11 ccache client
[email protected] Mon, 24 Jun 2024 19:51:09 -0400 (EDT)
| Newsgroups | gmane.comp.encryption.kerberos.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://github.com/krb5/krb5/commit/c9a83ad0788163bec4969a8975f0d3fb748689a6 commit c9a83ad0788163bec4969a8975f0d3fb748689a6 Author: Anthony Sottile <[email protected]> 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. [[email protected]: 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; }