diff options
author | Anthony Sottile <anthony.sottile@sentry.io> | 2024-01-12 19:10:03 -0500 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2024-06-24 19:38:48 -0400 |
commit | c9a83ad0788163bec4969a8975f0d3fb748689a6 (patch) | |
tree | 9c7913e7b3a0d45220b4ca8d4bbf495dd512e893 | |
parent | 5cbfb6366f6c07903e67c87db0144d280717cf0c (diff) | |
download | krb5-c9a83ad0788163bec4969a8975f0d3fb748689a6.zip krb5-c9a83ad0788163bec4969a8975f0d3fb748689a6.tar.gz krb5-c9a83ad0788163bec4969a8975f0d3fb748689a6.tar.bz2 |
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
-rw-r--r-- | src/lib/krb5/ccache/cc_api_macos.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/krb5/ccache/cc_api_macos.c b/src/lib/krb5/ccache/cc_api_macos.c index 3bf30c9..34b1c35 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; } |